mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
PROPLANTA: durationFetchReadings
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
524615fefc
commit
d015e679d1
@ -520,7 +520,8 @@ 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;
|
||||
}
|
||||
#####################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user