Merge pull request #3259 from GFZRZK/master

Bugfix: fix some typo and correct recoveries datasource
This commit is contained in:
Łukasz Magiera 2020-08-24 22:44:36 +02:00 committed by GitHub
commit 71a2dc06d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,13 +183,13 @@ var provingInfoCmd = &cli.Command{
fc, err := partition.Faults.Count()
if err != nil {
return xerrors.Errorf("count partition sectors: %w", err)
return xerrors.Errorf("count partition faults: %w", err)
}
faults += fc
rc, err := partition.Faults.Count()
rc, err := partition.Recoveries.Count()
if err != nil {
return xerrors.Errorf("count partition sectors: %w", err)
return xerrors.Errorf("count partition recoveries: %w", err)
}
recovering += rc
}