summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 +0000
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 +0000
commit3038819fef47495af2730b0d2df2a5a8475fc7bb (patch)
tree978a1706ef546a153bfc41af7f33959b4543678c /plugins/check_swap.c
parent0ff7d99a5e75683e778943884e60a11251183f45 (diff)
downloadmonitoring-plugins-3038819fef47495af2730b0d2df2a5a8475fc7bb.tar.gz
code cleanups, largely resulting from turning on -Wall. mostly
unused variables and explicit casting issues, but there were a couple gotchas in there too. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index aeeb9ba0..74b9daf6 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -385,7 +385,7 @@ process_arguments (int argc, char **argv)
385 } 385 }
386 else if (strstr (optarg, ",") && 386 else if (strstr (optarg, ",") &&
387 strstr (optarg, "%") && 387 strstr (optarg, "%") &&
388 sscanf (optarg, "%g,%d%%", &warn_size, &warn_percent) == 2) { 388 sscanf (optarg, "%lf,%d%%", &warn_size, &warn_percent) == 2) {
389 warn_size = floor(warn_size); 389 warn_size = floor(warn_size);
390 break; 390 break;
391 } 391 }
@@ -403,7 +403,7 @@ process_arguments (int argc, char **argv)
403 } 403 }
404 else if (strstr (optarg, ",") && 404 else if (strstr (optarg, ",") &&
405 strstr (optarg, "%") && 405 strstr (optarg, "%") &&
406 sscanf (optarg, "%g,%d%%", &crit_size, &crit_percent) == 2) { 406 sscanf (optarg, "%lf,%d%%", &crit_size, &crit_percent) == 2) {
407 crit_size = floor(crit_size); 407 crit_size = floor(crit_size);
408 break; 408 break;
409 } 409 }