summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author= <=>2018-07-31 00:27:13 -0500
committer= <=>2018-07-31 00:27:13 -0500
commitd003edcba6aaf29f74b904c09fc9dfdf3b2ff2cc (patch)
tree0e8587ef2b978cc872d5cd53b957fbd18c2db717 /src
parent639a67f752874142b1c081345fd36610e9046103 (diff)
Fix for issue 300: Correctly print usage for cpu 10
Diffstat (limited to 'src')
-rw-r--r--src/print_cpu_usage.c2
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++;
}