PROPLANTA: durationFetchReadings

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2014-12-02 21:34:55 +00:00
parent 524615fefc
commit d015e679d1

View File

@ -520,6 +520,7 @@ sub PROPLANTA_Run($)
my $hash = $defs{$name};
return unless (defined($hash->{NAME}));
my $readingStartTime = time();
my $attrURL = AttrVal( $name, 'URL', "" );
if ($attrURL eq "")
@ -578,6 +579,9 @@ sub PROPLANTA_Run($)
}
PROPLANTA_Log $hash, 5, "Parsed string: " . $ptext;
}
$ptext .= "|durationFetchReadings|";
$ptext .= sprintf "%.2f", time() - $readingStartTime;
return $ptext;
}
#####################################