aboutsummaryrefslogtreecommitdiff
path: root/src/ss/os.c
diff options
context:
space:
mode:
authorOndrej Čerman2020-06-06 20:11:47 +0200
committerOndrej Čerman2020-06-07 12:21:21 +0200
commit86d6046bbd3ebb110465bb0ccd009dbc86e71d69 (patch)
treea00a6693e39861d9106f5fa189e9b9c7fb210af4 /src/ss/os.c
parent696e5bbe87f94e64afc307b436172cd852e17b35 (diff)
Changed sysfs CPU cores detection based on thread_siblings_listsysdet2
Diffstat (limited to 'src/ss/os.c')
-rw-r--r--src/ss/os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ss/os.c b/src/ss/os.c
index a3ee7a6..8543c5f 100644
--- a/src/ss/os.c
+++ b/src/ss/os.c
@@ -15,11 +15,11 @@ gfloat *core_freq;
gfloat *core_freq_min;
gfloat *core_freq_max;
-static gdouble get_frequency(guint coreid) {
+static gdouble get_frequency(guint corei) {
gchar *data;
gdouble freq;
- if (!g_file_get_contents(frq_files[coreid], &data, NULL, NULL))
+ if (!g_file_get_contents(frq_files[corei], &data, NULL, NULL))
return 0.0;
freq = atoi(data) / 1000000.0;