summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2017-08-14 10:24:43 +0200
committerAaron Marcher <me@drkhsh.at>2017-08-14 11:35:52 +0200
commit0f7e022381e5a3e5f33c27980016432c205eff50 (patch)
tree2b729752659ae4229e09223b407b11156b7dee36 /slstatus.c
parente1e1b1d79a9d274c861386ad14a5eacb6a6819f7 (diff)
Fix a little logic error
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;
}