From 9a97cb76a37efa8bed86e9ff8bfe74d2020d3ff3 Mon Sep 17 00:00:00 2001 From: twopic2 Date: Sun, 5 Oct 2025 15:46:20 -0700 Subject: [PATCH] fixed conditional statement to cpufreq.peek() == 'c' || cpufreq.peek() == 'C --- src/linux/btop_collect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index 0fc17db3..4766cda8 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -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, ':');