aboutsummaryrefslogtreecommitdiff
path: root/src/ss
diff options
context:
space:
mode:
Diffstat (limited to 'src/ss')
-rw-r--r--src/ss/msr.c2
-rw-r--r--src/ss/os.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ss/msr.c b/src/ss/msr.c
index 17c9530..f64c534 100644
--- a/src/ss/msr.c
+++ b/src/ss/msr.c
@@ -166,7 +166,7 @@ GSList* msr_get_sensors() {
for (i = 0; i < cores; i++) {
data = sensor_init_new();
- data->label = g_strdup_printf("Core %d Power", cpu_dev_ids[i].coreid);
+ data->label = g_strdup_printf("Core %d Power", display_coreid ? cpu_dev_ids[i].coreid: i);
data->value = &(core_power[i]);
data->min = &(core_power_min[i]);
data->max = &(core_power_max[i]);
diff --git a/src/ss/os.c b/src/ss/os.c
index 637c4ec..a491c02 100644
--- a/src/ss/os.c
+++ b/src/ss/os.c
@@ -80,7 +80,7 @@ GSList* os_get_sensors(void) {
for (i = 0; i < cores; i++) {
data = sensor_init_new();
- data->label = g_strdup_printf("Core %d Frequency", cpu_dev_ids[i].coreid);
+ data->label = g_strdup_printf("Core %d Frequency", display_coreid ? cpu_dev_ids[i].coreid: i);
data->value = &(core_freq[i]);
data->min = &(core_freq_min[i]);
data->max = &(core_freq_max[i]);