summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c2
1 files changed, 1 insertions, 1 deletions
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)
186 186
187 if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { 187 if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) {
188 usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks; 188 usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks;
189 disk_result = check_disk (usp, fsp.fsu_bavail); 189 disk_result = check_disk (usp, fsp.fsu_bavail * fsp.fsu_blocksize);
190 result = max_state (disk_result, result); 190 result = max_state (disk_result, result);
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,