2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 04:36:02 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@6075 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2014-06-06 04:21:44 +00:00
parent 64a2229bd4
commit 60502ad47b

View File

@ -632,10 +632,13 @@ statistics_doStatisticDelta ($$$$$)
if ($showDate >= 6) { # Shows the "since:" value for the first day change
$showDate = 5;
$last[9] = $stat[9];
# Next monthly and yearly values start at 00:00 and show only date (no time)
$stat[5] = 0;
$stat[7] = 0;
$stat[9] = strftime "%Y-%m-%d", localtime(); # start
# Next monthly and yearly values start normaly at 00:00 and show only date (no time)
if (AttrVal($name, "dayChangeTime", "00:00") =~ /00:00|0:00/) {
my $periodChangePreset = AttrVal($name, "periodChangePreset", 5);
$stat[5] = 0;
$stat[7] = 0;
$stat[9] = strftime "%Y-%m-%d", localtime(gettimeofday()+$periodChangePreset); # start
}
}
Log3 $name,4,"$name: Shifting current day in last value of '$statReadingName'.";
}