Use power of 2 sizes when parsing byte counts

This commit is contained in:
Łukasz Magiera 2019-12-16 20:44:48 +01:00
parent c25f616562
commit e0c6247ac9
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ var fetchParamCmd = &cli.Command{
}, },
}, },
Action: func(cctx *cli.Context) error { 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 { if err != nil {
return err return err
} }

View File

@ -129,7 +129,7 @@ func main() {
return err return err
} }
sectorSizeInt, err := units.FromHumanSize(c.String("sector-size")) sectorSizeInt, err := units.RAMInBytes(c.String("sector-size"))
if err != nil { if err != nil {
return err return err
} }