2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

32_SYSSTAT.pm: fixed ininitialized variable warning

git-svn-id: https://svn.fhem.de/fhem/trunk@9262 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-09-16 09:01:31 +00:00
parent 154fbefdca
commit a07ac7b4b1

View File

@ -345,7 +345,7 @@ SYSSTAT_GetUpdate($)
}
} elsif( AttrVal($name, "synologytemperature", 0) > 0 ) {
my $temp = SYSSTAT_getSynoTemp($hash);
if( $temp > 0 && $temp < 200 ) {
if( $temp && $temp > 0 && $temp < 200 ) {
if( AttrVal($name, "synologytemperature", 0) eq 2 ) {
$temp = sprintf( "%.1f", (3 * ReadingsVal($name,"temperature",$temp) + $temp ) / 4 );
}