luxtronik2, statistics: bug fixes
git-svn-id: https://svn.fhem.de/fhem/trunk@6799 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -969,8 +969,8 @@ statistics_FormatDuration($)
|
||||
sub ########################################
|
||||
statistics_maxDecPlaces($$)
|
||||
{
|
||||
my ($value,$decMax) = @_;
|
||||
$decMax = 0 if $decMax == undef;
|
||||
my ($value, $decMax) = @_;
|
||||
$decMax = 0 if ! defined $decMax;
|
||||
if ( $value =~ /.*\.(.*)/ ) {
|
||||
my $decPlaces = length($1);
|
||||
$decMax = $decPlaces >= $decMax ? $decPlaces : $decMax;
|
||||
|
||||
Reference in New Issue
Block a user