Use power of 2 sizes when parsing byte counts
This commit is contained in:
parent
c25f616562
commit
e0c6247ac9
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user