From: Jean-Philippe Orsini Date: Mon, 8 Sep 2014 19:57:09 +0000 (+0200) Subject: fixed hdd temp not updated (id format changed) X-Git-Tag: v1.1.2~123 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=0f490cdf88f32a782630b7fb9b953e12b58ef79c fixed hdd temp not updated (id format changed) --- diff --git a/src/lib/hdd_hddtemp.c b/src/lib/hdd_hddtemp.c index ac0b2c3..e84944a 100644 --- a/src/lib/hdd_hddtemp.c +++ b/src/lib/hdd_hddtemp.c @@ -224,7 +224,7 @@ static void update(struct psensor **sensors, struct hdd_info *info) while (*sensor_cur) { if (!((*sensor_cur)->type & SENSOR_TYPE_REMOTE) && (*sensor_cur)->type & SENSOR_TYPE_HDDTEMP - && !strcmp((*sensor_cur)->id + 4, info->name)) + && !strcmp((*sensor_cur)->id + 8, info->name)) psensor_set_current_value(*sensor_cur, (float)info->temp);