Skip to content

Commit

Permalink
Use GB instead of GiB
Browse files Browse the repository at this point in the history
Get rid of the annoying difference between what Docker sets as a
Gig for a volume and what we were setting.

So now instead of "docker volume create -0 size 5" giving you a
volume of 5.4GB in the SF UI, you actually see 5 which is what
you want.
  • Loading branch information
John Griffith committed Sep 3, 2016
1 parent daf2d69 commit 2a0c0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (d SolidFireDriver) Create(r volume.Request) volume.Response {
if r.Options["size"] != "" {
s, _ := strconv.ParseInt(r.Options["size"], 10, 64)
log.Info("Received size request in Create: ", s)
vsz = int64(units.GiB) * s
vsz = int64(units.GB) * s
} else {
// NOTE(jdg): We need to cleanup the conversions and such when we read
// in from the config file, it's sort of ugly. BUT, just remember that
Expand Down

0 comments on commit 2a0c0c3

Please sign in to comment.