From ecc347af166d4c87ae72bc17e37e5a1414293469 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 28 Jan 2022 23:01:17 +0100 Subject: [PATCH] bin/heat: 24h wrapping --- bin/heat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/heat b/bin/heat index 8b97539..bab4730 100755 --- a/bin/heat +++ b/bin/heat @@ -166,7 +166,7 @@ if (!defined $newreset) { } $reset=$newreset; if ($reset=~/^\d+$/) { - $resetminutes=$reset+$minutes; + $resetminutes=($reset+$minutes)%(24*60); $reset=printminutes($resetminutes)." reset\n"; setstate; } else { -- 1.8.3.1