diff --git a/cli/spcli/actor.go b/cli/spcli/actor.go index ed4ce2fe280..aa66738ab46 100644 --- a/cli/spcli/actor.go +++ b/cli/spcli/actor.go @@ -173,7 +173,8 @@ func ActorDealSettlementCmd(getActor ActorAddressGetter) *cli.Command { } } - fmt.Printf("There are a total of %v deals, and about %v messages will be sent out.\n", len(dealIDs), len(dealIDs)/cctx.Int("max-deals")) + msgLen := (len(dealIDs) + cctx.Int("max-deals") - 1) / cctx.Int("max-deals") + fmt.Printf("There are a total of %v deals, and about %v messages will be sent out.\n", len(dealIDs), msgLen) if !cctx.Bool("really-do-it") { return fmt.Errorf("pass --really-do-it to confirm this action")