mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_SVG.pm: add 5 min to qday (Forum #86510)
git-svn-id: https://svn.fhem.de/fhem/trunk@16615 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9fdf3c57d9
commit
5a2cbe1768
@ -992,7 +992,7 @@ SVG_calcOffsets($$)
|
||||
|
||||
} elsif($zoom eq "qday") {
|
||||
if($endPlotNow) {
|
||||
my $t = int($now/300)*300 + ($off-1)*21600;
|
||||
my $t = int($now/300)*300+300 + ($off-1)*21600;
|
||||
my @l = localtime($t);
|
||||
$SVG_devs{$d}{from} = SVG_tspec( 0,$l[1],$l[2],$l[3],$l[4],$l[5]);
|
||||
@l = localtime($t+21600-1);
|
||||
@ -1009,7 +1009,7 @@ SVG_calcOffsets($$)
|
||||
} elsif($zoom =~ m/^(\d+)?day/) {
|
||||
my $nDays = $1 ? ($1-1) : 0;
|
||||
if($endPlotNow) {
|
||||
my $t = int($now/300)*300 + ($off-$nDays-1)*86400;
|
||||
my $t = int($now/300)*300+300 + ($off-$nDays-1)*86400;
|
||||
my @l = localtime($t);
|
||||
$SVG_devs{$d}{from} = SVG_tspec(0,$l[1],$l[2],$l[3],$l[4],$l[5]);
|
||||
@l = localtime($t+(1+$nDays)*86400-1);
|
||||
|
Loading…
Reference in New Issue
Block a user