diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-03 03:48:24 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-03 03:48:24 +0000 |
commit | 190419aee19deee6a107ebff0410118639d91147 (patch) | |
tree | 78a199b3be9861b824ee689aeddd4aa5046870bb /plugins/check_disk.c | |
parent | ca19083638e3bfb4a2f066b353a877701c561202 (diff) | |
download | monitoring-plugins-190419aee19deee6a107ebff0410118639d91147.tar.gz |
check_disk was getting blocks instead of bytes (Michael Musikhin - http://sourceforge.net/tracker/index.php?func=detail&aid=900215&group_id=29880&atid=397599)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@839 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_disk.c')
-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 86b90f7c..cb5e49e6 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -186,7 +186,7 @@ main (int argc, char **argv) if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks; - disk_result = check_disk (usp, fsp.fsu_bavail); + disk_result = check_disk (usp, fsp.fsu_bavail * fsp.fsu_blocksize); result = max_state (disk_result, result); psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; asprintf (&perf, "%s %s", perf, |