deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH] CIMI - fix issue with machine_configs values - DTACLOUD-369
Date Wed, 14 Nov 2012 07:44:51 GMT
From: marios <marios@redhat.com>

https://issues.apache.org/jira/browse/DTACLOUD-369

Signed-off-by: marios <marios@redhat.com>
---
 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


Mime
View raw message