Pass real current timestamp to state_thermal() after cooldown

This commit is contained in:
Andrea Mazzoleni 2026-09-06 23:52:25 +02:00
parent 9226f87ad1
commit 9ec2457147

View file

@ -371,7 +371,7 @@ void state_thermal_cooldown(struct snapraid_state* state)
state_device(state, DEVICE_UP, 0);
/* log new thermal info */
if (state_thermal(state, 0) != 0)
if (state_thermal(state, time(0)) != 0)
break;
/* repeat the cooldown if the temperature is still outside the operating range */