From 59c75ba442f3e1ac8627d750dcba32859b3066a9 Mon Sep 17 00:00:00 2001 From: Cnly Date: Fri, 20 Dec 2019 14:37:21 +0800 Subject: [PATCH] accounting: fix error count shown as checks - fixes #3814 --- fs/accounting/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/accounting/stats.go b/fs/accounting/stats.go index a2e44fb60..9f7502610 100644 --- a/fs/accounting/stats.go +++ b/fs/accounting/stats.go @@ -320,7 +320,7 @@ func (s *StatsInfo) String() string { } if s.checks != 0 || totalChecks != 0 { _, _ = 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 { _, _ = fmt.Fprintf(buf, "Deleted: %10d\n", s.deletes)