summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca19083)
raw | patch | inline | side by side (parent: ca19083)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 3 Mar 2004 03:48:24 +0000 (03:48 +0000) | ||
committer | Karl 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 | patch | blob | history |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 86b90f7c0e13c7f1c70a80b164016ba13e3a3009..cb5e49e6da2daf686f4a8dfd5670121a034b4ee0 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
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,