From: marios <[email protected]> https://issues.apache.org/jira/browse/DTACLOUD-369
Signed-off-by: marios <[email protected]> --- server/lib/cimi/helpers/cimi_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/cimi/helpers/cimi_helper.rb b/server/lib/cimi/helpers/cimi_helper.rb index f5e2dc3..c4d081e 100644 --- a/server/lib/cimi/helpers/cimi_helper.rb +++ b/server/lib/cimi/helpers/cimi_helper.rb @@ -34,9 +34,9 @@ module CIMI def to_kibibyte(value, unit) case unit when "GB" - (value*1024*1024).to_i + (value.to_i*1024*1024).to_i when "MB" - (value*1024).to_i + (value.to_i*1024).to_i else nil # should probably be exploding something here... end -- 1.7.11.7
