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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@992 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2011-09-04 06:25:25 +00:00
parent b88bfe5a6d
commit 03e532841f

View File

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