From 815497b04b76fae01a05dcc3e976c17b1039ec99 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Thu, 25 Jan 2024 10:44:26 +0100 Subject: [PATCH] fix(check_cpufreq): wrong factor in check_cpufreq for -G Signed-off-by: Davide Madrisan --- AUTHORS | 2 ++ plugins/check_cpufreq.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 17477aca..6936e003 100644 --- a/AUTHORS +++ b/AUTHORS @@ -28,6 +28,8 @@ Contributors: nE0sIghT - https://github.com/nE0sIghT Bug report and patch for fixing check_network when run in a containerized environment + ggzengel - https://github.com/ggzengel + Bug report (issues#137) Some code and coding styles/ideas belong to the following open source projects: diff --git a/plugins/check_cpufreq.c b/plugins/check_cpufreq.c index 0548fe5a..1a7f17cb 100644 --- a/plugins/check_cpufreq.c +++ b/plugins/check_cpufreq.c @@ -132,7 +132,7 @@ main (int argc, char **argv) case 'H': factor = 1000.0; break; case 'K': factor = 1.0; break; case 'M': factor = 1.0/1000; break; - case 'G': factor = 1.0/100000; break; + case 'G': factor = 1.0/1000000; break; case_GETOPT_HELP_CHAR case_GETOPT_VERSION_CHAR