aboutsummaryrefslogtreecommitdiff
path: root/getcore.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-07-23 14:29:10 +1200
committerDavid <dbphillipsnz@gmail.com>2014-07-23 14:29:10 +1200
commita0d65585015ca95a14fb319397fcf2bdab1440c4 (patch)
tree872a92d99bf0bfcc849f2713a4e0aeecaa4e1b30 /getcore.c
parent0c6eed2505e7feb8b006b6140a077b10f0215704 (diff)
downloadparamano-a0d65585015ca95a14fb319397fcf2bdab1440c4.tar.xz
Fixed the fix
Diffstat (limited to 'getcore.c')
-rw-r--r--getcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getcore.c b/getcore.c
index 7ef5c91..23bf946 100644
--- a/getcore.c
+++ b/getcore.c
@@ -37,7 +37,7 @@ bool core_exists(unsigned int core)
char corestr[4];
sprintf(corestr, "%d", core);
- sprintf(path, "/sys/devices/system/cpu/cpu%s/cpufreq/scaling_cur_freq", corestr);
+ sprintf(path, "/sys/devices/system/cpu/cpu%s/cpufreq/cpuinfo_cur_freq", corestr);
debug("Checking if core %d exists by opening '%s'\n",core,path);
return (gboolean)(fd = fopen(path, "r"));
}