fixed conditional statement to cpufreq.peek() == 'c' || cpufreq.peek() == 'C

This commit is contained in:
twopic2
2025-10-05 15:46:20 -07:00
committed by Jakob P. Liljenberg
parent df1d8c746e
commit 9a97cb76a3

View File

@@ -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, ':');