From 0f7e022381e5a3e5f33c27980016432c205eff50 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Mon, 14 Aug 2017 10:24:43 +0200 Subject: Fix a little logic error --- slstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slstatus.c') 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; } -- cgit v1.2.3