From 4f910ead8a985b8a9bea00ad9a26d3fbf37cb08d Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 3 Dec 2019 08:39:54 +0000 Subject: [PATCH] fhem.pl: implement WARNING checks (Forum #92841) git-svn-id: https://svn.fhem.de/fhem/trunk@20651 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index d8dccc86a..ccd13c163 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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} }