mirror of
https://github.com/aristocratos/btop.git
synced 2026-05-24 08:26:13 -04:00
fixed conditional statement to cpufreq.peek() == 'c' || cpufreq.peek() == 'C
This commit is contained in:
committed by
Jakob P. Liljenberg
parent
df1d8c746e
commit
9a97cb76a3
@@ -637,7 +637,7 @@ namespace Cpu {
|
||||
if (cpufreq.good()) {
|
||||
while (cpufreq.ignore(SSmax, '\n')) {
|
||||
// peek is caps sensitive so it was skipping 'CPU MHz'. This aims to fix it.
|
||||
if (cpufreq.peek() == 'c' or 'C') {
|
||||
if (cpufreq.peek() == 'c' || cpufreq.peek() == 'C') {
|
||||
cpufreq.ignore(SSmax, ' ');
|
||||
if (cpufreq.peek() == 'M') {
|
||||
cpufreq.ignore(SSmax, ':');
|
||||
|
||||
Reference in New Issue
Block a user