summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index eb936e2..f72f994 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -169,7 +169,7 @@ cpu_freq(void)
int freq;
return (pscanf("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq",
- "%i", &freq) != 1) ?
+ "%i", &freq) == 1) ?
bprintf("%d", (freq + 500) / 1000) : unknown_str;
}