summaryrefslogtreecommitdiffstats
path: root/plugins/check_load.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-09 06:01:03 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-09 06:01:03 (GMT)
commita228492c4bea15a3e6e7bdbfd6631611c97fe92c (patch)
tree0d21d5c54a2ab5ec3f4171fab668d390ea09bbaa /plugins/check_load.c
parent024751bac56791b7ae5347404274046e8ba58ccb (diff)
downloadmonitoring-plugins-a228492c4bea15a3e6e7bdbfd6631611c97fe92c.tar.gz
more pedantic compiler warns
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@672 f882894a-f735-0410-b71e-b25c423dba1c
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