1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Merge pull request #243 from Zmegolaz/smartctlhours

Split SMART power on hours on h too, not only space
This commit is contained in:
VVelox
2019-07-02 00:15:30 -05:00
committed by GitHub

View File

@@ -319,7 +319,7 @@ foreach my $line ( @disks ){
# 9, power on hours # 9, power on hours
if ( $id == 9 ) { if ( $id == 9 ) {
my @runtime=split(/\ /, $raw); my @runtime=split(/[\ h]/, $raw);
$IDs{$id}=$runtime[0]; $IDs{$id}=$runtime[0];
} }