Browse Source

Fix a little logic error

master
Laslo Hunhold 6 years ago
committed by Aaron Marcher
parent
commit
0f7e022381
No known key found for this signature in database GPG Key ID: 74B048E5C2474F9A
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      slstatus.c

+ 1
- 1
slstatus.c View File

@@ -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;
}



Loading…
Cancel
Save