Skip to content

Commit

Permalink
refs theforeman#2314 - more choices in memory drop down
Browse files Browse the repository at this point in the history
  • Loading branch information
rbirnie authored and Dominic Cleal committed Feb 5, 2014
1 parent 76ab062 commit f7d5a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/compute_resources_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def vm_pause_action vm

def memory_options max_memory
gb = 1024*1024*1024
opts = [0.25, 0.5, 0.75, 1, 2, 4, 8, 16]
opts = [0.25, 0.5, 0.75, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32]
opts.map{|n| [number_to_human_size(n*gb), (n*gb).to_i] unless n > (max_memory / gb)}.compact
end

Expand Down

0 comments on commit f7d5a22

Please sign in to comment.