diff --git a/snmp/smart b/snmp/smart index 309d8f8..75a02ff 100755 --- a/snmp/smart +++ b/snmp/smart @@ -319,7 +319,7 @@ foreach my $line ( @disks ){ # 9, power on hours if ( $id == 9 ) { - my @runtime=split(/\ /, $raw); + my @runtime=split(/[\ h]/, $raw); $IDs{$id}=$runtime[0]; }