slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit 0f7e022381e5a3e5f33c27980016432c205eff50
parent e1e1b1d79a9d274c861386ad14a5eacb6a6819f7
Author: Laslo Hunhold <dev@frign.de>
Date:   Mon, 14 Aug 2017 10:24:43 +0200

Fix a little logic error

Diffstat:
Mslstatus.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }