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

Commit

Permalink
Merge pull request #71 from RSE-Cambridge/real-size-fix
Browse files Browse the repository at this point in the history
Fix off by 10 error in realsize caculation
  • Loading branch information
JohnGarbutt authored Jul 31, 2019
2 parents 45c0d0b + d577057 commit 9440d04
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 9440d04

Please sign in to comment.