diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_swap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 6dec9b28..4d124a35 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -466,7 +466,7 @@ process_arguments (int argc, char **argv) | |||
466 | length = strlen(optarg); | 466 | length = strlen(optarg); |
467 | 467 | ||
468 | if (optarg[length - 1] == '%') { | 468 | if (optarg[length - 1] == '%') { |
469 | // It's percentage! | 469 | /* It's percentage */ |
470 | warn.is_percentage = true; | 470 | warn.is_percentage = true; |
471 | optarg[length - 1] = '\0'; | 471 | optarg[length - 1] = '\0'; |
472 | if (is_uint64(optarg, &warn.value)) { | 472 | if (is_uint64(optarg, &warn.value)) { |
@@ -477,7 +477,7 @@ process_arguments (int argc, char **argv) | |||
477 | } | 477 | } |
478 | } | 478 | } |
479 | } else { | 479 | } else { |
480 | // It's Bytes | 480 | /* It's Bytes */ |
481 | warn.is_percentage = false; | 481 | warn.is_percentage = false; |
482 | if (is_uint64(optarg, &warn.value)) { | 482 | if (is_uint64(optarg, &warn.value)) { |
483 | break; | 483 | break; |
@@ -497,7 +497,7 @@ process_arguments (int argc, char **argv) | |||
497 | length = strlen(optarg); | 497 | length = strlen(optarg); |
498 | 498 | ||
499 | if (optarg[length - 1] == '%') { | 499 | if (optarg[length - 1] == '%') { |
500 | // It's percentage! | 500 | /* It's percentage */ |
501 | crit.is_percentage = true; | 501 | crit.is_percentage = true; |
502 | optarg[length - 1] = '\0'; | 502 | optarg[length - 1] = '\0'; |
503 | if (is_uint64(optarg, &crit.value)) { | 503 | if (is_uint64(optarg, &crit.value)) { |
@@ -508,6 +508,7 @@ process_arguments (int argc, char **argv) | |||
508 | } | 508 | } |
509 | } | 509 | } |
510 | } else { | 510 | } else { |
511 | /* It's Bytes */ | ||
511 | crit.is_percentage = false; | 512 | crit.is_percentage = false; |
512 | if (is_uint64(optarg, &crit.value)) { | 513 | if (is_uint64(optarg, &crit.value)) { |
513 | break; | 514 | break; |