From a0d65585015ca95a14fb319397fcf2bdab1440c4 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Jul 2014 14:29:10 +1200 Subject: Fixed the fix --- getcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'getcore.c') 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")); } -- cgit v1.1