mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
76_SolarForecast: contrib 1.6.0
git-svn-id: https://svn.fhem.de/fhem/trunk@28296 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7538ce5b6a
commit
b245b5c360
@ -11655,6 +11655,8 @@ sub __calcNewFactor {
|
||||
$dnum = 1;
|
||||
$factor = sprintf "%.2f", ($pvre / $pvfc);
|
||||
}
|
||||
|
||||
$factor = 1.00 if(1 * $factor == 0);
|
||||
|
||||
return ($factor, $dnum);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user