aboutsummaryrefslogtreecommitdiff
path: root/getgov.c
diff options
context:
space:
mode:
Diffstat (limited to 'getgov.c')
-rw-r--r--getgov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/getgov.c b/getgov.c
index cff7329..df648a4 100644
--- a/getgov.c
+++ b/getgov.c
@@ -60,7 +60,7 @@ bool gg_current(int core, char* out, int size)
char *path;
asprintf(&path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", core);
- if (!(fd = check_for_file(path)))
+ if (!(fd = fopen(path, "r")))
{
free(path);
return false;
@@ -89,7 +89,7 @@ bool gg_available(int core, char* out, int size)
FILE *fd;
asprintf(&path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors", core);
- if (!(fd = check_for_file(path)))
+ if (!(fd = fopen(path, "r")))
{
free(path);
return false;