summaryrefslogtreecommitdiff
path: root/src/modules/temperature/e_mod_tempget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/temperature/e_mod_tempget.c')
-rw-r--r--src/modules/temperature/e_mod_tempget.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/modules/temperature/e_mod_tempget.c b/src/modules/temperature/e_mod_tempget.c
index 15f5307429..1fd00fe134 100644
--- a/src/modules/temperature/e_mod_tempget.c
+++ b/src/modules/temperature/e_mod_tempget.c
@@ -601,7 +601,12 @@ init(Tempthread *tth)
{
EINA_LIST_FOREACH(mon->temps, ll, temp)
{
- tth->sensor_name = eina_stringshare_add(temp->path);
+ char buf[256];
+
+ snprintf(buf, sizeof(buf), "%s - %s",
+ mon->label ? mon->label : mon->name,
+ temp->label ? temp->label : temp->name);
+ tth->sensor_name = eina_stringshare_add(buf);
break;
}
}
@@ -630,7 +635,12 @@ check(Tempthread *tth)
{
EINA_LIST_FOREACH(mon->temps, ll, temp)
{
- if (!strcmp(tth->sensor_name, temp->path))
+ char buf[256];
+
+ snprintf(buf, sizeof(buf), "%s - %s",
+ mon->label ? mon->label : mon->name,
+ temp->label ? temp->label : temp->name);
+ if (!strcmp(tth->sensor_name, buf))
{
t = temp->temp;
break;