mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: fix TimeSeries issue (git bugzilla #8)
git-svn-id: https://svn.fhem.de/fhem/trunk@8320 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6357805578
commit
d38398923b
@ -3768,9 +3768,10 @@ readingsBulkUpdate($$$@)
|
||||
#Debug "TimeSeries created.";
|
||||
}
|
||||
my $now = $hash->{".updateTime"};
|
||||
$changed= $ts->elapsed($now);
|
||||
$value= $ts->{$function} if($changed);
|
||||
$ts->add($now, $value);
|
||||
my $val = $value; # save value
|
||||
$changed = $ts->elapsed($now);
|
||||
$value = $ts->{$function} if($changed);
|
||||
$ts->add($now, $val);
|
||||
} else {
|
||||
# If no event-aggregator attribute, then remove stale series if any.
|
||||
delete $readings->{".ts"};
|
||||
|
Loading…
x
Reference in New Issue
Block a user