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:
parent
e3594fc11b
commit
ad21698a3f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user