Merge pull request #940 from filecoin-project/fix/units-parse
Use power of 2 sizes when parsing byte counts
This commit is contained in:
commit
4036f09610
@ -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