Skip to content

Commit

Permalink
Improving output when swap space has zero size
Browse files Browse the repository at this point in the history
  • Loading branch information
waja committed Oct 19, 2014
1 parent bd56c4a commit 40c870e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/check_swap.c
Expand Up @@ -352,6 +352,7 @@ main (int argc, char **argv)
percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb);
} else {
percent_used = 100;
status = "- Swap is either disabled, not present, or of zero size. ";
}

result = max_state (result, check_swap (percent_used, free_swap_mb));
Expand Down

0 comments on commit 40c870e

Please sign in to comment.