1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Bug #2266: Incompatible use of round method in earlier Ruby versions found in OneFlow component

This commit is contained in:
Jaime Melis 2013-08-13 17:14:01 -04:00
parent e3594fc11b
commit ad21698a3f

View File

@ -931,7 +931,7 @@ module ElasticityGrammar
val = nil
st = "#{att}[--]"
else
val = (total / n_nodes).round(2)
val = ((total / n_nodes)*100).round/100.0
st = "#{att}[#{val.to_s}]"
end