2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: implement WARNING checks (Forum #92841)

git-svn-id: https://svn.fhem.de/fhem/trunk@20651 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-12-03 08:39:54 +00:00
parent e64b07ec4e
commit 4f910ead8a

View File

@ -4873,9 +4873,9 @@ readingsBulkUpdate($$$@)
$ts= $readings->{".ts"};
} else {
require "TimeSeries.pm";
$ts= TimeSeries->new( { method => $method,
autoreset => $duration,
holdTime => $holdTime } );
$ts = TimeSeries->new( { method => $method,
autoreset=>(looks_like_number($duration) ? $duration:undef),
holdTime =>(looks_like_number($holdTime) ? $holdTime:undef)});
$readings->{".ts"}= $ts;
# access from command line:
# { $defs{"myClient"}{READINGS}{"myValue"}{".ts"}{max} }