Merge pull request #124 from acranox/disk_temp_smart_190

If SMART ID 194 is empty, try ID 190.
This commit is contained in:
Jordi Sanfeliu 2015-10-16 10:14:38 +02:00
commit 74da08ac47
1 changed files with 5 additions and 0 deletions

View File

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