diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch')
-rw-r--r-- | web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch b/web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch new file mode 100644 index 0000000..0ecd862 --- /dev/null +++ b/web/attachments/260911-nagios-plugins-1.4.11-check_swap-hpux-floor-patch | |||
@@ -0,0 +1,21 @@ | |||
1 | diff -Naur nagios-plugins-1.4.11/plugins/check_swap.c nagios-plugins-1.4.11-hpux-floor/plugins/check_swap.c | ||
2 | --- nagios-plugins-1.4.11/plugins/check_swap.c 2007-12-10 08:52:00.000000000 +0100 | ||
3 | +++ nagios-plugins-1.4.11-hpux-floor/plugins/check_swap.c 2008-01-05 17:11:46.696863797 +0100 | ||
4 | @@ -427,7 +427,7 @@ | ||
5 | else if (strstr (optarg, ",") && | ||
6 | strstr (optarg, "%") && | ||
7 | sscanf (optarg, "%f,%d%%", &warn_size_bytes, &warn_percent) == 2) { | ||
8 | - warn_size_bytes = floorf(warn_size_bytes); | ||
9 | + warn_size_bytes = (float) floor(warn_size_bytes); | ||
10 | break; | ||
11 | } | ||
12 | else if (strstr (optarg, "%") && | ||
13 | @@ -445,7 +445,7 @@ | ||
14 | else if (strstr (optarg, ",") && | ||
15 | strstr (optarg, "%") && | ||
16 | sscanf (optarg, "%f,%d%%", &crit_size_bytes, &crit_percent) == 2) { | ||
17 | - crit_size_bytes = floorf(crit_size_bytes); | ||
18 | + crit_size_bytes = (float) floor(crit_size_bytes); | ||
19 | break; | ||
20 | } | ||
21 | else if (strstr (optarg, "%") && | ||