accounting: fix error count shown as checks - fixes #3814

This commit is contained in:
Cnly 2019-12-20 14:37:21 +08:00
parent 0ecb8bc2f9
commit 59c75ba442

View File

@ -320,7 +320,7 @@ func (s *StatsInfo) String() string {
} }
if s.checks != 0 || totalChecks != 0 { if s.checks != 0 || totalChecks != 0 {
_, _ = fmt.Fprintf(buf, "Checks: %10d / %d, %s\n", _, _ = fmt.Fprintf(buf, "Checks: %10d / %d, %s\n",
s.errors, totalChecks, percent(s.checks, totalChecks)) s.checks, totalChecks, percent(s.checks, totalChecks))
} }
if s.deletes != 0 { if s.deletes != 0 {
_, _ = fmt.Fprintf(buf, "Deleted: %10d\n", s.deletes) _, _ = fmt.Fprintf(buf, "Deleted: %10d\n", s.deletes)