From f04cbbbacd3c4f7825713e35a95026eadadce4d3 Mon Sep 17 00:00:00 2001 From: grompo <> Date: Wed, 23 Mar 2016 16:58:32 +0000 Subject: [PATCH] statistics: bugfix special period git-svn-id: https://svn.fhem.de/fhem/trunk@11116 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_statistics.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_statistics.pm b/fhem/FHEM/98_statistics.pm index 343e1e6ca..004dd9859 100644 --- a/fhem/FHEM/98_statistics.pm +++ b/fhem/FHEM/98_statistics.pm @@ -3,7 +3,7 @@ # # 98_statistic.pm # -# (c) 2014 Torsten Poitzsch < torsten . poitzsch at gmx . de > +# (c) 2014-2016 tupol http://forum.fhem.de/index.php?action=profile;u=5432 # # This module computes statistic data of and for readings of other modules # @@ -829,7 +829,7 @@ sub statistics_doStatisticSpecialPeriod ($$$$$) my $result = 0; foreach (@hidden) { $result += $_; } $result = sprintf "%.".$decPlaces."f", $result; - if ($#hidden != $specialPeriod) { $result .= " (".$#hidden.".hours)"; } + $result .= " (".$#hidden.".hours)" if $#hidden != $specialPeriod-1; readingsBulkUpdate($dev, $statReadingName, $result, 1); # Store hidden stack