Code

check_disk was getting blocks instead of bytes (Michael Musikhin - http://sourceforge...
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 3 Mar 2004 03:48:24 +0000 (03:48 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 3 Mar 2004 03:48:24 +0000 (03:48 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@839 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_disk.c

index 86b90f7c0e13c7f1c70a80b164016ba13e3a3009..cb5e49e6da2daf686f4a8dfd5670121a034b4ee0 100644 (file)
@@ -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,