From 65c1c533082114b92605c8e45c930263ef913c00 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 4 Jun 2003 22:17:04 +0000 Subject: Argument to asprintf in wrong order git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@533 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_disk.c') diff --git a/plugins/check_disk.c b/plugins/check_disk.c index bc2d3dda..d0431d9b 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -235,8 +235,8 @@ main (int argc, char **argv) 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, -- cgit v1.2.3