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

Split SMART power on hours on h too, not only space

This commit is contained in:
Zmegolaz
2019-07-01 22:00:41 +02:00
parent ae0030a9ac
commit 94294d12cb

View File

@ -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];
}