diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-31 00:10:56 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-31 00:10:56 +0200 |
| commit | d6d394fb0e1d04bbdb9304dcedad933878846266 (patch) | |
| tree | 92509c62bbaa739ba2a032bbe8d85afa316ef436 | |
| parent | 430c641d9c6c3efb3fb0493b35e11dbc6ede2faa (diff) | |
| download | monitoring-plugins-d6d394fb0e1d04bbdb9304dcedad933878846266.tar.gz | |
Fix some typos with units
| -rw-r--r-- | plugins/check_disk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index ac3933a6..e53ec87f 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
| @@ -520,17 +520,17 @@ check_disk_config_wrapper process_arguments(int argc, char **argv) { | |||
| 520 | } else if (!strcmp(optarg, "MB")) { | 520 | } else if (!strcmp(optarg, "MB")) { |
| 521 | unit = MegaBytes_factor; | 521 | unit = MegaBytes_factor; |
| 522 | } else if (!strcmp(optarg, "GiB")) { | 522 | } else if (!strcmp(optarg, "GiB")) { |
| 523 | unit = MegaBytes_factor; | 523 | unit = GibiBytes_factor; |
| 524 | } else if (!strcmp(optarg, "GB")) { | 524 | } else if (!strcmp(optarg, "GB")) { |
| 525 | unit = MegaBytes_factor; | 525 | unit = GigaBytes_factor; |
| 526 | } else if (!strcmp(optarg, "TiB")) { | 526 | } else if (!strcmp(optarg, "TiB")) { |
| 527 | unit = MegaBytes_factor; | 527 | unit = TebiBytes_factor; |
| 528 | } else if (!strcmp(optarg, "TB")) { | 528 | } else if (!strcmp(optarg, "TB")) { |
| 529 | unit = MegaBytes_factor; | 529 | unit = TeraBytes_factor; |
| 530 | } else if (!strcmp(optarg, "PiB")) { | 530 | } else if (!strcmp(optarg, "PiB")) { |
| 531 | unit = MegaBytes_factor; | 531 | unit = PebiBytes_factor; |
| 532 | } else if (!strcmp(optarg, "PB")) { | 532 | } else if (!strcmp(optarg, "PB")) { |
| 533 | unit = PetaBytes; | 533 | unit = PetaBytes_factor; |
| 534 | } else { | 534 | } else { |
| 535 | die(STATE_UNKNOWN, _("unit type %s not known\n"), optarg); | 535 | die(STATE_UNKNOWN, _("unit type %s not known\n"), optarg); |
| 536 | } | 536 | } |
