From 42e61c4f6e36ace401d363ee002688d5bbb78b6e Mon Sep 17 00:00:00 2001 From: Mateusz Poszwa Date: Mon, 29 Aug 2011 15:28:01 +0200 Subject: fix parentheses in cc1457c4f0f4cccb8bec326dd0bb13082ac806e6 --- src/print_cpu_usage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 143cf40..1d3bac8 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -29,8 +29,8 @@ void print_cpu_usage(const char *format) { #if defined(LINUX) static char statpath[512]; strcpy(statpath, "/proc/stat"); - if (!slurp(statpath, buf, sizeof(buf) || - sscanf(buf, "cpu %d %d %d %d", &curr_user, &curr_nice, &curr_system, &curr_idle) != 4)) + if (!slurp(statpath, buf, sizeof(buf)) || + sscanf(buf, "cpu %d %d %d %d", &curr_user, &curr_nice, &curr_system, &curr_idle) != 4) goto error; curr_total = curr_user + curr_nice + curr_system + curr_idle; -- cgit v1.2.3