summaryrefslogtreecommitdiffstats
path: root/web/attachments/92703-check_disk.patch
blob: 920b56ef976e1c9704105fb693ee73a55f1c70e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- check_disk.c.orig	2004-07-02 09:50:32.000000000 -0600
+++ check_disk.c	2004-07-02 15:02:59.000000000 -0600
@@ -191,7 +191,7 @@
 			psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult;
 			asprintf (&perf, "%s %s", perf,
 			          perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir,
-			                    fsp.fsu_bavail*fsp.fsu_blocksize/mult, units,
+			                    psize-(fsp.fsu_bavail*fsp.fsu_blocksize/mult), units,
 			                    TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)),
 			                    TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)),
 			                    TRUE, 0,