From 30b4353c7e20d37434307f7a3b1dc66d74db5d5e Mon Sep 17 00:00:00 2001 From: Drath Vader Date: Fri, 24 Oct 2025 11:56:31 +0200 Subject: [PATCH] this is what most software reads --- src/cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.cpp b/src/cpu.cpp index 6595a4e..70b7e79 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/cpu" + std::to_string(i) + "/cpufreq/scaling_cur_freq", buf, sizeof(buf)); + readFile2("/sys/devices/system/cpu/cpu" + std::to_string(i) + "/cpufreq/cpuinfo_avg_freq", buf, sizeof(buf)); c->avg_freq += strtol(buf, NULL, 10); } c->avg_freq /= N_CPU;