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 | 4b91b8bd3d3bf22bd2037047022000604bf0af2c (patch) | |
tree | 2b729752659ae4229e09223b407b11156b7dee36 | |
parent | 0dfdbb6304219224ce935f4db00128e34430b915 (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; } |