From 9ec245714791c8d084d107f196260e1586ca7a79 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 6 Sep 2026 23:52:25 +0200 Subject: [PATCH] Pass real current timestamp to state_thermal() after cooldown --- cmdline/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/thermal.c b/cmdline/thermal.c index 1fa923ce..5496fd09 100644 --- a/cmdline/thermal.c +++ b/cmdline/thermal.c @@ -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 */