Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Fix off by 10 error in realsize caculation
Browse files Browse the repository at this point in the history
There is probably a bigger testing issue and code strucutre issue in
here.
  • Loading branch information
JohnGarbutt committed Jul 31, 2019
1 parent 45c0d0b commit d577057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/dacctl/actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (fwa *dacctlActions) RealSize(c CliContext) error {
return err
}
// TODO get GiB vs GB correct here!
fmt.Printf(`{"token":"%s", "capacity":%d, "units":"bytes"}`, volume.Name, volume.SizeGB*10737418240)
fmt.Printf(`{"token":"%s", "capacity":%d, "units":"bytes"}`, volume.Name, volume.SizeGB*1073741824)
return nil
}

Expand Down

0 comments on commit d577057

Please sign in to comment.