mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_SVG.pm: fix log computing (Forum #111615)
git-svn-id: https://svn.fhem.de/fhem/trunk@22058 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
60b7ef3f6c
commit
198772cd83
@ -1928,7 +1928,7 @@ SVG_render($$$$$$$$$$)
|
||||
my $f_log = int($hmax{$a}) ? ((SVG_log10($hmax{$a}) -
|
||||
SVG_log10($hmin{$a})) / ($hmax{$a}-$hmin{$a})) : 1;
|
||||
if( $log eq 'log' ) {
|
||||
foreach my $i (1..int(@{$dxp})-1) {
|
||||
foreach my $i (0..int(@{$dyp})-1) {
|
||||
$dyp->[$i] = (SVG_log10($dyp->[$i])-SVG_log10($hmin{$a})) / $f_log;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user