2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

98_SVG.pm: increase min/max range from 1e7 to 1e30 (Forum #112509)

git-svn-id: https://svn.fhem.de/fhem/trunk@22350 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-07-05 13:20:52 +00:00
parent 0b5da07c22
commit 22d6648faa

View File

@ -1517,7 +1517,7 @@ SVG_render($$$$$$$$$$)
my $tmul;
$tmul = $w/($tosec-$fromsec) if($tosec && $fromsec && $tosec != $fromsec);
my ($min, $max, $idx) = (99999999, -99999999, 0);
my ($min, $max, $idx) = (9e+30, -9e+30, 0);
my (%hmin, %hmax, @hdx, @hdy);
my ($dxp, $dyp) = (\(), \());
@ -1542,7 +1542,7 @@ SVG_render($$$$$$$$$$)
$hmin{$a} = $min if(!defined($hmin{$a}) || $hmin{$a} > $min);
$hmax{$a} = $max if(!defined($hmax{$a}) || $hmax{$a} < $max);
}
($min, $max) = (99999999, -99999999);
($min, $max) = (9e+30, -9e+30);
$hdx[$idx] = $dxp; $hdy[$idx] = $dyp;
($dxp, $dyp) = (\(), \());
$lIdx++;