2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

fhem.pl: reformat to 80-char

git-svn-id: https://svn.fhem.de/fhem/trunk@11655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-06-13 16:52:23 +00:00
parent 8313f00991
commit 6a3349ce24

View File

@ -4093,7 +4093,8 @@ readingsBulkUpdate($$$@)
if( $attreocr ) {
if( my $attrtocr = $hash->{".attrtocr"} ) {
$update_timestamp = $changed if( $attrtocr && grep($reading =~ m/^$_$/, @{$attrtocr}) );
$update_timestamp = $changed
if( $attrtocr && grep($reading =~ m/^$_$/, @{$attrtocr}) );
}
}
@ -4112,7 +4113,9 @@ readingsBulkUpdate($$$@)
$ts= $readings->{".ts"};
} else {
require "TimeSeries.pm";
$ts= TimeSeries->new( { method => $method, autoreset => $duration, holdTime => $holdTime } );
$ts= TimeSeries->new( { method => $method,
autoreset => $duration,
holdTime => $holdTime } );
$readings->{".ts"}= $ts;
# access from command line:
# { $defs{"myClient"}{READINGS}{"myValue"}{".ts"}{max} }
@ -4130,7 +4133,8 @@ readingsBulkUpdate($$$@)
}
setReadingsVal($hash, $reading, $value, $hash->{".updateTimestamp"}) if( $update_timestamp );
setReadingsVal($hash, $reading, $value, $hash->{".updateTimestamp"})
if($update_timestamp);
my $rv = "$reading: $value";
if($changed) {