mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Reset thermal_highest_temperature before readings to ensure fail-open on SMART error
This commit is contained in:
parent
f4be0b54d0
commit
918d849739
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ int state_thermal(struct snapraid_state* state, time_t now)
|
|||
if (state->thermal_temperature_limit == 0)
|
||||
return 0;
|
||||
|
||||
/* reset the current highest temperature to ensure fail-open on measurement failure */
|
||||
state->thermal_highest_temperature = 0;
|
||||
|
||||
state_devmap(state);
|
||||
|
||||
tommy_list_init(&high);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue