diff options
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index aeeb9ba..74b9daf 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 | } |