summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Čerman2019-06-16 23:53:04 +0200
committerOndrej Čerman2019-06-16 23:53:04 +0200
commit91a250850649cce70f901f7d847a82ec3cf4fd75 (patch)
tree383d5bf31d15c4e6a49448f27c732a5fcefb71f8
parent37fc68ca76571bbb1ccf8c21ea159e5273bcde4a (diff)
Fix: Check zenpower hwmon
-rw-r--r--src/ss/zenpower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ss/zenpower.c b/src/ss/zenpower.c
index e67211e..7d24bba 100644
--- a/src/ss/zenpower.c
+++ b/src/ss/zenpower.c
@@ -47,7 +47,7 @@ gboolean zenpower_init() {
while ((entry = g_dir_read_name(hwmon))) {
read_raw_hwmon_value(entry, "name", &name);
- if (strcmp(name, "zenpower")) {
+ if (strcmp(g_strchomp(name), "zenpower") == 0) {
zenpowerDir = g_strdup(entry);
break;
}