slackbuilds_ponce/desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch
Robby Workman d711d31700 desktop/icewm: Reverted to 1.3.7 plus some more patches
Thanks again to Janusz Kuśnierek for assistance with this
and for noting a couple of fairly major bugs wrt usability
that make the revert desirable.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2014-04-12 13:59:48 -05:00

11 lines
459 B
Diff

--- src/acpustatus.cc.orig 2010-10-31 17:09:36.000000000 +0300
+++ src/acpustatus.cc 2013-08-26 00:38:16.868170497 +0400
@@ -323,7 +323,7 @@
int fd;
float cpufreq = 0;
- sprintf(namebuf, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu);
+ sprintf(namebuf, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_cur_freq", cpu);
fd = open(namebuf, O_RDONLY);
if (fd != -1) {
int len = read(fd, buf, sizeof(buf) - 1);