From 2cb1006b60a372f2eafd72e778382f9a6d76ff7a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 3 Dec 2011 12:21:54 +0100 Subject: add non-working nagios-plugins port --- .../nagios-plugins/patches/patch-plugins_check_load_c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/nagios-plugins/patches/patch-plugins_check_load_c (limited to 'package/nagios-plugins/patches/patch-plugins_check_load_c') diff --git a/package/nagios-plugins/patches/patch-plugins_check_load_c b/package/nagios-plugins/patches/patch-plugins_check_load_c new file mode 100644 index 000000000..95c386e56 --- /dev/null +++ b/package/nagios-plugins/patches/patch-plugins_check_load_c @@ -0,0 +1,18 @@ +--- nagios-plugins-1.4.15.orig/plugins/check_load.c 2010-07-27 22:47:16.000000000 +0200 ++++ nagios-plugins-1.4.15/plugins/check_load.c 2011-12-03 12:12:09.000000000 +0100 +@@ -163,6 +163,7 @@ main (int argc, char **argv) + # endif + #endif + ++#if 0 + if (take_into_account_cpus == 1) { + if ((numcpus = GET_NUMBER_OF_CPUS()) > 0) { + la[0] = la[0] / numcpus; +@@ -170,6 +171,7 @@ main (int argc, char **argv) + la[2] = la[2] / numcpus; + } + } ++#endif + if ((la[0] < 0.0) || (la[1] < 0.0) || (la[2] < 0.0)) { + #ifdef HAVE_GETLOADAVG + printf (_("Error in getloadavg()\n")); -- cgit v1.2.3