From: Ton Voon Date: Wed, 14 Sep 2005 09:53:49 +0000 (+0000) Subject: Fix to parsing of uptime (Ronald Tin - 1254656) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20d0154211fa46028383ed3a88b558731313c389;p=nagiosplug.git Fix to parsing of uptime (Ronald Tin - 1254656) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1218 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_load.c b/plugins/check_load.c index 21627fe..191f6d3 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c @@ -137,7 +137,7 @@ main (int argc, char **argv) printf (_("Could not open stderr for %s\n"), PATH_TO_UPTIME); } fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); - sscanf (input_buffer, "%*[^l]load average: %f, %f, %f", &la1, &la5, &la15); + sscanf (input_buffer, "%*[^l]load average: %lf, %lf, %lf", &la1, &la5, &la15); result = spclose (child_process); if (result) {