summaryrefslogtreecommitdiff
path: root/src/print_cpu_usage.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-10-04 21:01:49 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-10-04 21:01:49 +0200
commit974f95702efbf1ae15882777d191c7fde99bfb9b (patch)
treeb17acf7436a8b9de6c6d27aa4d82f01f6b8821aa /src/print_cpu_usage.c
parentf3125fdfded91144cb9f5b9ea3bf406598f17321 (diff)
parenta13b2e7288e943359ccb37be86efb716efbe98c8 (diff)
Merge pull request #68 from bsvh/master
Added support for lemonbar
Diffstat (limited to 'src/print_cpu_usage.c')
-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 927e763..adf2d04 100644
--- a/src/print_cpu_usage.c
+++ b/src/print_cpu_usage.c
@@ -102,7 +102,7 @@ void print_cpu_usage(yajl_gen json_gen, char *buffer, const char *format) {
}
if (BEGINS_WITH(walk + 1, "usage")) {
- outwalk += sprintf(outwalk, "%02d%%", diff_usage);
+ outwalk += sprintf(outwalk, "%02d%s", diff_usage, pct_mark);
walk += strlen("usage");
}
}