diff options
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, "%") && | ||