From: Jean-Philippe Orsini Date: Sun, 1 May 2011 20:54:14 +0000 (+0000) Subject: avoid fetching hddtemp daemon when no hdd in the sensors list X-Git-Tag: v0.8.0.5~802 X-Git-Url: https://git.wpitchoune.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=637e142fd9693a875ae7d9de728fba79db961da1;p=psensor.git avoid fetching hddtemp daemon when no hdd in the sensors list --- diff --git a/src/lib/psensor.c b/src/lib/psensor.c index bf7bcb8..8a71781 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -418,5 +418,7 @@ const char *psensor_type_to_str(unsigned int type) void psensor_list_update_measures(struct psensor **sensors) { lmsensor_psensor_list_update(sensors); - hdd_psensor_list_update(sensors); + + if (psensor_list_contains_type(sensors, SENSOR_TYPE_HDD_TEMP)) + hdd_psensor_list_update(sensors); }