mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
fix uninitialized value error if remote device ist not present
git-svn-id: https://svn.fhem.de/fhem/trunk@3007 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c384f54795
commit
a8e956a903
@ -156,7 +156,7 @@ SYSSTAT_GetUpdate($)
|
||||
#my $load = $hash->{loadavg}->get;
|
||||
my $load = SYSSTAT_getLoadAVG( $hash );
|
||||
|
||||
$hash->{STATE} = $load->{avg_1} . " " . $load->{avg_5} . " " . $load->{avg_15};
|
||||
$hash->{STATE} = $load->{avg_1} . " " . $load->{avg_5} . " " . $load->{avg_15} if( defined($load->{avg_1}) );
|
||||
|
||||
readingsSingleUpdate($hash,"load",$load->{avg_1},defined($hash->{LOCAL} ? 0 : 1));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user