summaryrefslogtreecommitdiffstats
path: root/plugins/check_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r--plugins/check_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 4a38e6c..bdb1e55 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -45,7 +45,7 @@ void print_usage (void);
45float wload1 = -1, wload5 = -1, wload15 = -1; 45float wload1 = -1, wload5 = -1, wload15 = -1;
46float cload1 = -1, cload5 = -1, cload15 = -1; 46float cload1 = -1, cload5 = -1, cload15 = -1;
47 47
48char *status_line = ""; 48char *status_line;
49 49
50 50
51 51
@@ -72,7 +72,7 @@ main (int argc, char **argv)
72 float la1, la5, la15; 72 float la1, la5, la15;
73 73
74 if (process_arguments (argc, argv) == ERROR) 74 if (process_arguments (argc, argv) == ERROR)
75 usage ("\n"); 75 usage ("failed processing arguments\n");
76 76
77#if HAVE_GETLOADAVG==1 77#if HAVE_GETLOADAVG==1
78 result = getloadavg (la, 3); 78 result = getloadavg (la, 3);
@@ -122,7 +122,7 @@ main (int argc, char **argv)
122# endif 122# endif
123#endif 123#endif
124 124
125 if ((la1 == -1) || (la5 == -1) || (la15 == -1)) { 125 if ((la1 < 0.0) || (la5 < 0.0) || (la15 < 0.0)) {
126#if HAVE_GETLOADAVG==1 126#if HAVE_GETLOADAVG==1
127 printf (_("Error in getloadavg()\n")); 127 printf (_("Error in getloadavg()\n"));
128#else 128#else