Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/lotus-shed/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var f3GenExplicitPower = &cli.Command{
},
&cli.IntFlag{
Name: "n",
Usage: "generate N entries, exclusive with ratio",
Usage: "generate n entries, exclusive with ratio",
},
&cli.Float64Flag{
Name: "ratio",
Expand Down Expand Up @@ -110,8 +110,8 @@ var f3GenExplicitPower = &cli.Command{
if err != nil {
return fmt.Errorf("getting chain head: %w", err)
}
if cctx.IsSet("N") && cctx.IsSet("ratio") {
return fmt.Errorf("N and ratio options are exclusive")
if cctx.IsSet("n") && cctx.IsSet("ratio") {
return fmt.Errorf("n and ratio options are exclusive")
}

allPowerEntries, err := api.F3GetECPowerTable(ctx, ts.Key())
Expand Down Expand Up @@ -161,7 +161,7 @@ var f3GenExplicitPower = &cli.Command{
}
rng := rand.New(rand.NewSource(seed))

endSize := cctx.Int("N")
endSize := cctx.Int("n")
if cctx.IsSet("ratio") {
endSize = int(float64(total) * cctx.Float64("ratio"))
}
Expand Down