From 8b403d7fce8c130f04c5bb7f6095d6e49f2a763c Mon Sep 17 00:00:00 2001 From: Drath Vader Date: Fri, 24 Oct 2025 11:36:42 +0200 Subject: [PATCH] bro... --- src/cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.cpp b/src/cpu.cpp index 960a772..6595a4e 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -44,7 +44,7 @@ void update(cpuSensors* c) { // lots of reads but still faster than reading /proc/cpuinfo char buf[5]; for (uint8_t i = 0; i < N_CPU; i++) { - readFile2("/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq", buf, sizeof(buf)); + readFile2("/sys/devices/system/cpu/cpu" + std::to_string(i) + "/cpufreq/scaling_cur_freq", buf, sizeof(buf)); c->avg_freq += strtol(buf, NULL, 10); } c->avg_freq /= N_CPU;