Bugfix: fix some typo and correct recoveries datasource

Bugfix: fix some typo and correct recoveries data source
This commit is contained in:
WC 2020-08-24 14:56:44 +08:00 committed by GitHub
parent 4311c96a44
commit 119f6ff2e6
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
}