mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Use the AirFlow temperature if the disk temperatur is not available
This commit is contained in:
parent
4a25cdc952
commit
e04c7cc1f8
1 changed files with 3 additions and 1 deletions
|
|
@ -124,7 +124,9 @@ struct snapraid_thermal_params fit_thermal_model(const struct snapraid_thermal_p
|
|||
|
||||
static int smart_temp(devinfo_t* devinfo)
|
||||
{
|
||||
uint64_t t = devinfo->smart[SMART_TEMPERATURE_CELSIUS];
|
||||
uint64_t t = devinfo->smart[SMART_TEMPERATURE_CELSIUS] & 0xFFFFFFFF;
|
||||
if (t == SMART_UNASSIGNED)
|
||||
t = devinfo->smart[SMART_AIRFLOW_TEMPERATURE_CELSIUS] & 0xFFFFFFFF;
|
||||
|
||||
/* validate temperature */
|
||||
if (t == SMART_UNASSIGNED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue