summaryrefslogtreecommitdiffstats
path: root/web/attachments/256811-check_disk.extra-debug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/256811-check_disk.extra-debug.patch')
-rw-r--r--web/attachments/256811-check_disk.extra-debug.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/attachments/256811-check_disk.extra-debug.patch b/web/attachments/256811-check_disk.extra-debug.patch
new file mode 100644
index 0000000..c083be7
--- /dev/null
+++ b/web/attachments/256811-check_disk.extra-debug.patch
@@ -0,0 +1,15 @@
1Index: plugins/check_disk.c
2===================================================================
3--- plugins/check_disk.c (revision 1828)
4+++ plugins/check_disk.c (working copy)
5@@ -311,6 +311,10 @@
6 available_to_root = fsp.fsu_bfree;
7 used = total - available_to_root;
8
9+ if (verbose >= 3)
10+ printf ("For %s, total=%llu, available=%llu, available_to_root=%llu, used=%llu, fsp.fsu_files=%llu, fsp.fsu_ffree=%llu\n",
11+ me->me_mountdir, total, available, available_to_root, used, fsp.fsu_files, fsp.fsu_ffree);
12+
13 dused_pct = calculate_percent( used, used + available ); /* used + available can never be > uintmax */
14
15 dfree_pct = 100 - dused_pct;