diff options
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 3bf7d432..6a578abe 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -224,13 +224,13 @@ main (int argc, char **argv) | |||
224 | asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), | 224 | asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), |
225 | (100 - percent_used), free_swap, total_swap, status); | 225 | (100 - percent_used), free_swap, total_swap, status); |
226 | 226 | ||
227 | asprintf (&perf, "%s", perfdata ("swap", free_swap, "MB", | 227 | asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB", |
228 | TRUE, max (warn_size/1024, warn_percent/100.0*total_swap), | 228 | TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap), |
229 | TRUE, max (crit_size/1024, crit_percent/100.0*total_swap), | 229 | TRUE, (long) max (crit_size/1024, crit_percent/100.0*total_swap), |
230 | TRUE, 0, | 230 | TRUE, 0, |
231 | TRUE, total_swap)); | 231 | TRUE, (long) total_swap)); |
232 | die (result, "SWAP %s:%s |%s\n", state_text (result), status, perf); | 232 | printf ("SWAP %s:%s |%s\n", state_text (result), status, perf); |
233 | return STATE_UNKNOWN; | 233 | return result; |
234 | } | 234 | } |
235 | 235 | ||
236 | 236 | ||