diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-18 20:21:59 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-18 20:21:59 +0000 |
commit | ce1d727ac7bbd6844a64d6fb9a12c6aa06b41db5 (patch) | |
tree | 88d517c885bb7a32e37b3ae3cfb933616aeeea29 | |
parent | 99af226d3d26c4b13d3f94458b269cdcaace7651 (diff) | |
download | monitoring-plugins-ce1d727ac7bbd6844a64d6fb9a12c6aa06b41db5.tar.gz |
Fixed perfdata so that shows amount used (Garry Cook)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@885 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 09c6b0a1..3beb5689 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -191,7 +191,7 @@ main (int argc, char **argv) | |||
191 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; | 191 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; |
192 | asprintf (&perf, "%s %s", perf, | 192 | asprintf (&perf, "%s %s", perf, |
193 | perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir, | 193 | perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir, |
194 | fsp.fsu_bavail*fsp.fsu_blocksize/mult, units, | 194 | psize-(fsp.fsu_bavail*fsp.fsu_blocksize/mult), units, |
195 | TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)), | 195 | TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)), |
196 | TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)), | 196 | TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)), |
197 | TRUE, 0, | 197 | TRUE, 0, |