From: Karl DeBisschop Date: Wed, 3 Mar 2004 03:48:24 +0000 (+0000) Subject: check_disk was getting blocks instead of bytes (Michael Musikhin - http://sourceforge... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=190419aee19deee6a107ebff0410118639d91147;p=nagiosplug.git check_disk was getting blocks instead of bytes (Michael Musikhin - 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 --- diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 86b90f7..cb5e49e 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,