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:
@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user