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

Feature #2218: Truncate values in expression evaluation

(cherry picked from commit 6badf786babd05a78be61c6e4821de8fc97f2801)
This commit is contained in:
Carlos Martín 2013-07-30 15:07:41 +02:00
parent 9f9500776a
commit f405138cbc
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# -------------------------------------------------------------------------- #
# Autogenerated from a Treetop grammar. Edits may be lost.
# -------------------------------------------------------------------------- #
# Copyright 2010-2013, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
@ -931,7 +931,7 @@ module ElasticityGrammar
val = nil
st = "#{att}[--]"
else
val = total / n_nodes
val = (total / n_nodes).round(2)
st = "#{att}[#{val.to_s}]"
end

View File

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