Commit 53bd6107 authored by Matthew Johnson's avatar Matthew Johnson
Browse files

[vagrantfile] Fix exponentiation type coercion issue

parent 58320dac
......@@ -11,7 +11,7 @@ Vagrant.configure("2") do |config|
if host =~ /darwin/
cpus = `sysctl -n hw.ncpu`.to_i
# sysctl returns Bytes and we need to convert to MB
mem = `sysctl -n hw.memsize`.to_f / 1024^2 * mem_ratio
mem = `sysctl -n hw.memsize`.to_i / (1024^2) * mem_ratio
elsif host =~ /linux/
cpus = `nproc`.to_i
# meminfo shows KB and we need to convert to MB
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment