From cc5875c6bd2a5fbf4f38cb0c8fc0c942ef898aa6 Mon Sep 17 00:00:00 2001 From: shannon Date: Wed, 20 May 2020 11:58:58 +0800 Subject: [PATCH] Pset represents the proving sectors, and Sset repensents all sectors --- cmd/lotus-storage-miner/info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-storage-miner/info.go b/cmd/lotus-storage-miner/info.go index 6ab37d9b1..ca871e32c 100644 --- a/cmd/lotus-storage-miner/info.go +++ b/cmd/lotus-storage-miner/info.go @@ -103,11 +103,11 @@ var infoCmd = &cli.Command{ fmt.Printf("\tProving: %s\n", types.SizeStr(types.BigMul(types.NewInt(secCounts.Pset), types.NewInt(uint64(mi.SectorSize))))) } else { var faultyPercentage float64 - if secCounts.Pset != 0 { - faultyPercentage = float64(10000*uint64(len(faults))/secCounts.Pset) / 100. + if secCounts.Sset != 0 { + faultyPercentage = float64(10000*uint64(len(faults))/secCounts.Sset) / 100. } fmt.Printf("\tProving: %s (%s Faulty, %.2f%%)\n", - types.SizeStr(types.BigMul(types.NewInt(secCounts.Pset-uint64(len(faults))), types.NewInt(uint64(mi.SectorSize)))), + types.SizeStr(types.BigMul(types.NewInt(secCounts.Pset), types.NewInt(uint64(mi.SectorSize)))), types.SizeStr(types.BigMul(types.NewInt(uint64(len(faults))), types.NewInt(uint64(mi.SectorSize)))), faultyPercentage) }