From 94294d12cbe24bafcf7f5da14e90c012482cadad Mon Sep 17 00:00:00 2001 From: Zmegolaz Date: Mon, 1 Jul 2019 22:00:41 +0200 Subject: [PATCH] Split SMART power on hours on h too, not only space --- snmp/smart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }