Skip to content
Snippets Groups Projects
Commit d10960e7 authored by Sergey Ivanov's avatar Sergey Ivanov
Browse files

to work with zfs/2.1.1

parent 8b7a7b96
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,8 @@ sub handler { ...@@ -90,6 +90,8 @@ sub handler {
scan: scrub repaired 0 in 78h6m with 0 errors on Tue Mar 29 00:16:48 2016 scan: scrub repaired 0 in 78h6m with 0 errors on Tue Mar 29 00:16:48 2016
- or - - or -
scan: scrub repaired 0B in 0 days 09:55:51 with 0 errors on Thu Mar 7 01:46:05 2019 scan: scrub repaired 0B in 0 days 09:55:51 with 0 errors on Thu Mar 7 01:46:05 2019
- or -
scan: scrub repaired 0B in 14:02:48 with 0 errors on Fri Oct 1 16:02:50 2021
- or - - or -
scan: scrub in progress since Tue Mar 29 19:09:47 2016 scan: scrub in progress since Tue Mar 29 19:09:47 2016
14.3G scanned out of 47.0G at 172M/s, 0h3m to go 14.3G scanned out of 47.0G at 172M/s, 0h3m to go
...@@ -127,8 +129,8 @@ sub handler { ...@@ -127,8 +129,8 @@ sub handler {
$when += 60*$howlong; $when += 60*$howlong;
$repaired += $errors if $repaired < $errors; $repaired += $errors if $repaired < $errors;
} }
elsif (/^\s*scan:\s+scrub\s+repaired\s+(\d*)\s+in\s+(\d*)h(\d*)m\s+with\s+(\d*)\s+errors\s+on\s+(.+)$/){ elsif (/^\s*scan:\s+scrub\s+repaired\s+(\d*B*)\s+in\s+(\d*)[h\:](\d*)[m\:](\d*)\s+with\s+(\d*)\s+errors\s+on\s+(.+)$/){
($repaired,$h,$m,$errors,$when) = ($1,$2,$3,$4,$5); ($repaired,$h,$m,$s,$errors,$when) = ($1,$2,$3,$4,$5,$6);
$when = `$DATE '+%s'` - `$DATE '+%s' -d "$when"`; $when = `$DATE '+%s'` - `$DATE '+%s' -d "$when"`;
$howlong = 60*$h+$m; $howlong = 60*$h+$m;
$when += 60*$howlong; $when += 60*$howlong;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment