aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2011-12-30 19:43:42 -0200
committerLeandro Pereira <leandro@hardinfo.org>2011-12-30 19:43:42 -0200
commit8b74ec2bb7cda97fba49c2b1039c1b6b749d81b8 (patch)
treee19430243a23c4fafa81e11cce80b40cbd0bd0d0
parent38d3d5c271f74f0cf4512a49a36ec47bc06ad98b (diff)
Make hwmon sensors work with recent kernel versions
-rw-r--r--modules/devices/sensors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/sensors.c b/modules/devices/sensors.c
index 22c67590..c920d6cf 100644
--- a/modules/devices/sensors.c
+++ b/modules/devices/sensors.c
@@ -161,7 +161,7 @@ static void read_sensors_hwmon(void)
gchar *path_hwmon, *path_sensor, *tmp, *driver, *name, *mon;
hwmon = 0;
- path_hwmon = g_strdup_printf("/sys/class/hwmon/hwmon%d/device/", hwmon);
+ path_hwmon = g_strdup_printf("/sys/class/hwmon/hwmon%d/", hwmon);
while (g_file_test(path_hwmon, G_FILE_TEST_EXISTS)) {
tmp = g_strdup_printf("%sdriver", path_hwmon);
driver = g_file_read_link(tmp, NULL);