diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index ce510e14..04256adf 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -350,7 +350,7 @@ main (int argc, char **argv) | |||
350 | if(total_swap_mb) { | 350 | if(total_swap_mb) { |
351 | percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb); | 351 | percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb); |
352 | } else { | 352 | } else { |
353 | percent_used = 0; | 353 | percent_used = 100; |
354 | } | 354 | } |
355 | 355 | ||
356 | result = max_state (result, check_swap (percent_used, free_swap_mb)); | 356 | result = max_state (result, check_swap (percent_used, free_swap_mb)); |