mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-18 18:16:03 +00:00
98_SVG.pm: fix axe description for zoom >= 3year (Forum #118907)
git-svn-id: https://svn.fhem.de/fhem/trunk@23833 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
789a03ec01
commit
e92955c5c5
@ -1673,7 +1673,7 @@ SVG_render($$$$$$$$$$)
|
||||
}
|
||||
|
||||
} else { # times
|
||||
$initoffset = int(($tstep/2)/86400)*86400 if($aligntics);
|
||||
$initoffset = int(($tstep/2)/86400)*86400 if($aligntics == 1);
|
||||
for(my $i = $fromsec+$initoffset; $i < $tosec; $i += $tstep) {
|
||||
$i = SVG_time_align($i,$aligntics);
|
||||
$off1 = int($x+($i-$fromsec)*$tmul);
|
||||
@ -1730,7 +1730,7 @@ SVG_render($$$$$$$$$$)
|
||||
}
|
||||
|
||||
} else { # times
|
||||
$initoffset = int(($step/2)/86400)*86400 if($aligntext);
|
||||
$initoffset = int(($step/2)/86400)*86400 if($aligntext == 1);
|
||||
for(my $i = $fromsec+$initoffset; $i < $tosec; $i += $step) {
|
||||
$i = SVG_time_align($i,$aligntext);
|
||||
$off1 = int($x+($i-$fromsec)*$tmul);
|
||||
|
Loading…
x
Reference in New Issue
Block a user