diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-11-12 05:41:28 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-11-12 05:41:28 +0000 |
commit | 7626b3413d1d84aa1768ad47626d044cf3f2791a (patch) | |
tree | 18830e8e2061fdcdb1760d92d772fc96470dbfeb /plugins/check_swap.c | |
parent | a28ef8e438f4d45e6f3b1747a247b21d3e8d1482 (diff) | |
download | monitoring-plugins-7626b3413d1d84aa1768ad47626d044cf3f2791a.tar.gz |
clean up compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@766 f882894a-f735-0410-b71e-b25c423dba1c
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) asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), (100 - percent_used), free_swap, total_swap, status); - asprintf (&perf, "%s", perfdata ("swap", free_swap, "MB", - TRUE, max (warn_size/1024, warn_percent/100.0*total_swap), - TRUE, max (crit_size/1024, crit_percent/100.0*total_swap), + asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB", + TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap), + TRUE, (long) max (crit_size/1024, crit_percent/100.0*total_swap), TRUE, 0, - TRUE, total_swap)); - die (result, "SWAP %s:%s |%s\n", state_text (result), status, perf); - return STATE_UNKNOWN; + TRUE, (long) total_swap)); + printf ("SWAP %s:%s |%s\n", state_text (result), status, perf); + return result; } |