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