From 119f6ff2e66225eb19d39ad518df35d946a3e0f4 Mon Sep 17 00:00:00 2001 From: WC <34792731+GFZRZK@users.noreply.github.com> Date: Mon, 24 Aug 2020 14:56:44 +0800 Subject: [PATCH] Bugfix: fix some typo and correct recoveries datasource Bugfix: fix some typo and correct recoveries data source --- cmd/lotus-storage-miner/proving.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-storage-miner/proving.go b/cmd/lotus-storage-miner/proving.go index 85379a748..502edb57b 100644 --- a/cmd/lotus-storage-miner/proving.go +++ b/cmd/lotus-storage-miner/proving.go @@ -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 }