[Nagiosplug-checkins] nagiosplug/plugins check_load.c,1.29,1.30
Ton Voon
tonvoon at users.sourceforge.net
Wed Sep 14 02:55:24 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1199/plugins
Modified Files:
check_load.c
Log Message:
Fix to parsing of uptime (Ronald Tin - 1254656)
Index: check_load.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_load.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- check_load.c 28 Jun 2005 02:26:18 -0000 1.29
+++ check_load.c 14 Sep 2005 09:53:49 -0000 1.30
@@ -137,7 +137,7 @@
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) {
More information about the Commits
mailing list