diff options
author | Ingo Bürk <admin@airblader.de> | 2018-08-01 13:49:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 13:49:27 +0200 |
commit | fadd4d89b1e196e009d5cd5cc2f6c3bdda83b12e (patch) | |
tree | 0e8587ef2b978cc872d5cd53b957fbd18c2db717 /src | |
parent | 639a67f752874142b1c081345fd36610e9046103 (diff) | |
parent | d003edcba6aaf29f74b904c09fc9dfdf3b2ff2cc (diff) |
Merge pull request #301 from wmarvel/issue300
Fix for issue 300: Correctly print usage for cpu 10
Diffstat (limited to 'src')
-rw-r--r-- | src/print_cpu_usage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 615fe5d..1fccba4 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -163,7 +163,7 @@ void print_cpu_usage(yajl_gen json_gen, char *buffer, const char *format, const } int padding = 1; int step = 10; - while (step < number) { + while (step <= number) { step *= 10; padding++; } |