summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7afe6f1)
raw | patch | inline | side by side (parent: 7afe6f1)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 4 Jun 2003 22:17:04 +0000 (22:17 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 4 Jun 2003 22:17:04 +0000 (22:17 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@533 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 bc2d3ddad40181d67ba2598fe8478863e46b900c..d0431d9b98f7c322eb7cefb97e575877d95ac6af 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
asprintf (&details, "%s\n%llu of %llu %s (%2.0f%%) free on %s (type %s mounted on %s)",
details,
fsp.fsu_bavail*fsp.fsu_blocksize/mult,
- units,
fsp.fsu_blocks*fsp.fsu_blocksize/mult,
+ units,
(double)fsp.fsu_bavail*100/fsp.fsu_blocks,
me->me_devname,
me->me_type,