From ad21698a3f24362d1705a90b9498b273ad265306 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Tue, 13 Aug 2013 17:14:01 -0400 Subject: [PATCH] Bug #2266: Incompatible use of round method in earlier Ruby versions found in OneFlow component --- src/flow/lib/grammar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flow/lib/grammar.rb b/src/flow/lib/grammar.rb index 976c3658e2..0abb2e3a5b 100644 --- a/src/flow/lib/grammar.rb +++ b/src/flow/lib/grammar.rb @@ -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