mirror of https://github.com/mikaku/Monitorix.git
commit
98dd737eb5
|
@ -236,6 +236,11 @@ sub disk_update {
|
||||||
$temp = $tmp[3] unless $temp;
|
$temp = $tmp[3] unless $temp;
|
||||||
chomp($temp);
|
chomp($temp);
|
||||||
}
|
}
|
||||||
|
if(/^Temperature: /) {
|
||||||
|
my @tmp = split(' ', $_);
|
||||||
|
$temp = $tmp[1] unless $temp;
|
||||||
|
chomp($temp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
close(IN);
|
close(IN);
|
||||||
if(!$temp) {
|
if(!$temp) {
|
||||||
|
|
Loading…
Reference in New Issue