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

one more fix

parent bef265d2
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ sub handler {
$when = int(($when+30)/60);
$repaired += $errors if $repaired < $errors;
$togo = 0;
`$ECHO -n $howlong > $statusfile` unless $howlong == $oldhowlong && (-w $statusfile);
`$ECHO -n $howlong > $statusfile` unless $howlong == $oldhowlong && (not ( -w $statusfile) );
}
elsif ( (/^\s*scan:\s+scrub\s+in\s+progress\s+since\s+(.+)$/) or
(/^\s*scan:\s+resilver\s+in\s+progress\s+since\s+(.+)$/)
......@@ -174,6 +174,9 @@ sub handler {
$repaired = $1;
}
}
if ( ( $togo > 0 ) && ( $howlong == 0 ) ) {
$howlong = $when + $togo
}
return {
"when" => [$when, "i"],
"howlong" => [$howlong, "i"],
......
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