2
0
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:
justme-1968 2013-03-31 11:15:23 +00:00
parent c384f54795
commit a8e956a903

View File

@ -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));