mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +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:
parent
810c5c65a2
commit
baf528eb85
@ -194,7 +194,7 @@ SVG_log10($)
|
||||
|
||||
return 0.0000000001 if( $n <= 0 );
|
||||
|
||||
return log($n)/log(10);
|
||||
return log(1+$n)/log(10);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user