Browse Source

Fixed issue with N/A disk temp not returning correctly

Paul Trost 11 years ago
parent
commit
ca21bc8b38
1 changed files with 2 additions and 2 deletions
  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;
     }