2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

log() removed as the fb7270-per does not have it

git-svn-id: https://svn.fhem.de/fhem/trunk@992 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-09-04 06:25:25 +00:00
parent 4ff92d185c
commit daf54f52c6

View File

@ -346,8 +346,8 @@ SVG_render($$$$$$$)
my $yh = $y+$h;
my $tl = $ltitle[$idx] ? $ltitle[$idx] : "";
my $dec = int(log($hmul*3)/log(10)); # Some perl implementations do not have log()
# my $dec = 1;
#my $dec = int(log($hmul*3)/log(10)); # Some perl implementations do not have log()
my $dec = length(sprintf("%d",$hmul*3))-1;
$dec = 0 if($dec < 0);
my $js_helpers = "id=\"line_$idx\" decimals=\"$dec\" ".
"x_off=\"$fromsec\" x_min=\"$x\" x_mul=\"$tmul\" ".