diff --git a/cli/params.go b/cli/params.go index 11a956120..533c82b5b 100644 --- a/cli/params.go +++ b/cli/params.go @@ -17,7 +17,7 @@ var fetchParamCmd = &cli.Command{ }, }, Action: func(cctx *cli.Context) error { - sectorSizeInt, err := units.FromHumanSize(cctx.String("proving-params")) + sectorSizeInt, err := units.RAMInBytes(cctx.String("proving-params")) if err != nil { return err } diff --git a/cmd/lotus-bench/main.go b/cmd/lotus-bench/main.go index 4592fdbb5..e287deeff 100644 --- a/cmd/lotus-bench/main.go +++ b/cmd/lotus-bench/main.go @@ -129,7 +129,7 @@ func main() { return err } - sectorSizeInt, err := units.FromHumanSize(c.String("sector-size")) + sectorSizeInt, err := units.RAMInBytes(c.String("sector-size")) if err != nil { return err }