10 lines
489 B
Diff
10 lines
489 B
Diff
--- nagios-plugins-1.4.15/plugins/check_disk.c 2010-07-27 22:47:16.000000000 +0200
|
|
+++ check_disk.c 2012-06-05 21:17:26.650825165 +0200
|
|
@@ -314,6 +314,7 @@
|
|
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 */
|
|
+ total = used + available;
|
|
|
|
dfree_pct = 100 - dused_pct;
|
|
dused_units = used*fsp.fsu_blocksize/mult;
|