]> git.sur5r.net Git - i3/i3status/blobdiff - src/print_cpu_usage.c
Fix for issue 300: Correctly print usage for cpu 10
[i3/i3status] / src / print_cpu_usage.c
index 615fe5dc276140a196070972d91ed98b16b47a78..1fccba41abe0a3d74cb54000a54a06bdc907138b 100644 (file)
@@ -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++;
             }