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

fhem.pl: revert the TimeSeries "looks_like_number" patch (Forum #92841)

git-svn-id: https://svn.fhem.de/fhem/trunk@21044 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-01-24 17:56:00 +00:00
parent c4b57b770b
commit 4d824d159e

View File

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