mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
73_GasCalculator: bugfix: Reset for calendar year fixed
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12968 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
619ab73204
commit
7b502d88e6
@ -694,7 +694,7 @@ sub GasCalculator_Notify($$)
|
||||
my $GasCalcMeterYearMonth=0;
|
||||
if (($GasCountReadingTimestampCurrentMon - $attr{$GasCalcName}{MonthOfAnnualReading} + 1) < 1)
|
||||
{
|
||||
$GasCalcMeterYearMonth = 12 + $GasCountReadingTimestampCurrentMon - $attr{$GasCalcName}{MonthOfAnnualReading};
|
||||
$GasCalcMeterYearMonth = 13 + $GasCountReadingTimestampCurrentMon - $attr{$GasCalcName}{MonthOfAnnualReading};
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user