From 6a3349ce2435bd0971bd9b680a42dc9a6f56f59a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 13 Jun 2016 16:52:23 +0000 Subject: [PATCH] fhem.pl: reformat to 80-char git-svn-id: https://svn.fhem.de/fhem/trunk@11655 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index dad1a33ab..9e107f518 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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}) ); } } @@ -4106,13 +4107,15 @@ readingsBulkUpdate($$$@) ($reading=~ m/^$l$/) ? $_ : undef} @{$hash->{".attraggr"}}; if(@v) { # e.g. power:20:linear:avg - my (undef, $duration, $method, $function, $holdTime) = split(":", $v[0], 5); + my (undef,$duration,$method,$function,$holdTime) = split(":", $v[0], 5); my $ts; if(defined($readings->{".ts"})) { $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) {