X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_load.c;h=191f6d308b38043883cd6f836ab98ce58faf939b;hb=9d878eab82bede19e80b4aa9ce1409da3ba6d658;hp=21627feecf6a9e520098efa5bd8ecdb3bd59edc4;hpb=2f904659dc3179148215f16aad4f9098aef222c5;p=nagiosplug.git 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) {