Skip to content
Snippets Groups Projects
Commit 53bd6107 authored by Matthew Johnson's avatar Matthew Johnson
Browse files

[vagrantfile] Fix exponentiation type coercion issue

parent 58320dac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment