소스 검색

Fixed issue with N/A disk temp not returning correctly

Paul Trost 11 년 전
부모
커밋
ca21bc8b38
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/Disk/SMART.pm

+ 2 - 2
lib/Disk/SMART.pm

@@ -6,7 +6,7 @@ use Carp;
 use Math::Round;
 
 {
-    $Disk::SMART::VERSION = '0.05'
+    $Disk::SMART::VERSION = '0.06'
 }
 
 our $smartctl = '/usr/sbin/smartctl';
@@ -244,7 +244,7 @@ sub _process_disk_temp {
     my ($temp_c) = $smart_output =~ /(Temperature_Celsius.*\n)/;
 
     if ( !defined $temp_c || $smart_output =~ qr/S.M.A.R.T. not available/x ) {
-        $self->{'devices'}->{$device}->{'temp'} = 'N/A';
+        $self->{'devices'}->{$device}->{'temp'} = [( 'N/A' )];
         return;
     }