2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

SVG.pm: log-patch from justme1968 (Forum #53487)

git-svn-id: https://svn.fhem.de/fhem/trunk@11540 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-05-29 08:18:23 +00:00
parent 810c5c65a2
commit baf528eb85
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ SVG_log10($)
return 0.0000000001 if( $n <= 0 );
return log($n)/log(10);
return log(1+$n)/log(10);
}

View File

@ -259,7 +259,7 @@ sv_menu(evt, embed)
if( par.log_scale ) {
y *= par.log_scale;
y = Math.pow(10,y);
y = Math.pow(10,y) - 1;
}
y = y.toFixed(par.decimals);