From b582620e774cdce3427023defe733ff4a5157bef Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 15 Oct 2019 16:51:47 +0200 Subject: [PATCH] Fix percentage display License: MIT Signed-off-by: Jakub Sztandera --- cmd/lotus-storage-miner/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-storage-miner/info.go b/cmd/lotus-storage-miner/info.go index cd097810f..5d55efcf5 100644 --- a/cmd/lotus-storage-miner/info.go +++ b/cmd/lotus-storage-miner/info.go @@ -43,7 +43,7 @@ var infoCmd = &cli.Command{ } percI := types.BigDiv(types.BigMul(pow.MinerPower, types.NewInt(1000)), pow.TotalPower) - fmt.Printf("Power: %s / %s (%0.2f%%)\n", pow.MinerPower, pow.TotalPower, float64(percI.Int64())/1000) + fmt.Printf("Power: %s / %s (%0.2f%%)\n", pow.MinerPower, pow.TotalPower, float64(percI.Int64())/1000*100) sinfo, err := sectorsInfo(ctx, nodeApi) if err != nil {