summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2005-09-14 09:53:49 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2005-09-14 09:53:49 +0000
commit20d0154211fa46028383ed3a88b558731313c389 (patch)
tree403f1b3236305ba636984740432a89c53347e61f /plugins
parent66ada169aadff3d614ed109bf12df2f94a381c37 (diff)
downloadmonitoring-plugins-20d0154211fa46028383ed3a88b558731313c389.tar.gz
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 21627fee..191f6d30 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -137,7 +137,7 @@ main (int argc, char **argv)
137 printf (_("Could not open stderr for %s\n"), PATH_TO_UPTIME); 137 printf (_("Could not open stderr for %s\n"), PATH_TO_UPTIME);
138 } 138 }
139 fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); 139 fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process);
140 sscanf (input_buffer, "%*[^l]load average: %f, %f, %f", &la1, &la5, &la15); 140 sscanf (input_buffer, "%*[^l]load average: %lf, %lf, %lf", &la1, &la5, &la15);
141 141
142 result = spclose (child_process); 142 result = spclose (child_process);
143 if (result) { 143 if (result) {