98_apptime: minor bug

git-svn-id: https://svn.fhem.de/fhem/trunk@12820 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2016-12-18 15:22:37 +00:00
parent 6d1ac13eb6
commit 7bfdd6f306

View File

@@ -141,7 +141,7 @@ sub apptime_CommandDispTiming($$@) {
my $h = $defs{$d}{helper}{bm}{$f};
my $arg = "";
if ($h->{mAr}){
if ($h->{mAr} && scalar(@{$h->{mAr}})){
foreach my $i (0..scalar(@{$h->{mAr}})){
if(ref(${$h->{mAr}}[$i]) eq 'HASH' and exists(${$h->{mAr}}[$i]->{NAME})){
${$h->{mAr}}[$i] = "HASH(".${$h->{mAr}}[$i]->{NAME}.")";
@@ -174,6 +174,9 @@ sub apptime_CommandDispTiming($$@) {
1;
=pod
=item command
=item summary support to analyse function performance
=item summary_DE unterstuetzung der analyse der Performance von Funktionen
=begin html
<a name="apptime"></a>