Skip to content

Commit

Permalink
Makes sure memory size is a multiple of 4 to avoid Fusion to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Jan 9, 2015
1 parent 33b18e1 commit c5eabc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vms/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ func (v *VM) Update() error {
}

info := &vmware.VMInfo{
MemorySize: v.Memory,
//hacky way of making sure it is a multiple of 4 megabytes
MemorySize: (v.Memory + 3) & ^0x03,
CPUs: v.CPUs,
Name: v.ID,
}
Expand Down

0 comments on commit c5eabc7

Please sign in to comment.