From 52c7e2743923ffd65881806898e2924d4823174c Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 2 Oct 2022 07:38:09 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.68.4 git-svn-id: https://svn.fhem.de/fhem/trunk@26464 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 129f0bafb..ed6fbbe16 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -917,9 +917,8 @@ sub _setconsumerImmediatePlanning { ## no critic "not used" return qq{no consumer number specified} if(!$c); return qq{no valid consumer id "$c"} if(!ConsumerVal ($hash, $c, "name", "")); - my $startts = time; - my $mintime = ConsumerVal ($hash, $c, "mintime", $defmintime); - my $stopdiff = ceil ($mintime * 60); + my $startts = time; + my $stopdiff = ceil(ConsumerVal ($hash, $c, "mintime", $defmintime) / 60) * 3600; my $stopts = $startts + $stopdiff; $paref->{consumer} = $c;