mirror of https://github.com/mikaku/Monitorix.git
Merge pull request #124 from acranox/disk_temp_smart_190
If SMART ID 194 is empty, try ID 190.
This commit is contained in:
commit
74da08ac47
|
@ -220,6 +220,11 @@ sub disk_update {
|
|||
$temp = $tmp[9];
|
||||
chomp($temp);
|
||||
}
|
||||
if(/^190/ && /Airflow_Temperature_Cel/) {
|
||||
my @tmp = split(' ', $_);
|
||||
$temp = $tmp[9] unless $temp;
|
||||
chomp($temp);
|
||||
}
|
||||
if(/^197/ && /Current_Pending_Sector/) {
|
||||
my @tmp = split(' ', $_);
|
||||
$smart2 = $tmp[9];
|
||||
|
|
Loading…
Reference in New Issue