Fix percentage display

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-10-15 16:51:47 +02:00
parent 44a4901149
commit b582620e77
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -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 {