mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6075 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f182e5e26c
commit
c0a5bd18a5
@ -632,10 +632,13 @@ statistics_doStatisticDelta ($$$$$)
|
|||||||
if ($showDate >= 6) { # Shows the "since:" value for the first day change
|
if ($showDate >= 6) { # Shows the "since:" value for the first day change
|
||||||
$showDate = 5;
|
$showDate = 5;
|
||||||
$last[9] = $stat[9];
|
$last[9] = $stat[9];
|
||||||
# Next monthly and yearly values start at 00:00 and show only date (no time)
|
# 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[5] = 0;
|
||||||
$stat[7] = 0;
|
$stat[7] = 0;
|
||||||
$stat[9] = strftime "%Y-%m-%d", localtime(); # start
|
$stat[9] = strftime "%Y-%m-%d", localtime(gettimeofday()+$periodChangePreset); # start
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Log3 $name,4,"$name: Shifting current day in last value of '$statReadingName'.";
|
Log3 $name,4,"$name: Shifting current day in last value of '$statReadingName'.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user