summaryrefslogtreecommitdiffstats
path: root/web/attachments/256811-check_disk.extra-debug.patch
blob: c083be76098d94262adf3e2a86222ce6205853d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: plugins/check_disk.c
===================================================================
--- plugins/check_disk.c	(revision 1828)
+++ plugins/check_disk.c	(working copy)
@@ -311,6 +311,10 @@
       available_to_root = fsp.fsu_bfree;
       used = total - available_to_root;
 
+      if (verbose >= 3)
+        printf ("For %s, total=%llu, available=%llu, available_to_root=%llu, used=%llu, fsp.fsu_files=%llu, fsp.fsu_ffree=%llu\n",
+          me->me_mountdir, total, available, available_to_root, used, fsp.fsu_files, fsp.fsu_ffree);
+
       dused_pct = calculate_percent( used, used + available );	/* used + available can never be > uintmax */
      
       dfree_pct = 100 - dused_pct;