diff options
author | Laslo Hunhold <dev@frign.de> | 2017-08-14 10:24:43 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-08-14 11:35:52 +0200 |
commit | 0f7e022381e5a3e5f33c27980016432c205eff50 (patch) | |
tree | 2b729752659ae4229e09223b407b11156b7dee36 | |
parent | e1e1b1d79a9d274c861386ad14a5eacb6a6819f7 (diff) |
Fix a little logic error
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |