You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/11/14 10:27:11 UTC
git commit: CIMI - fix issue with machine_configs values -
DTACLOUD-369
Updated Branches:
refs/heads/master f241998b7 -> 5ed52fc7a
CIMI - fix issue with machine_configs values - DTACLOUD-369
https://issues.apache.org/jira/browse/DTACLOUD-369
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/5ed52fc7
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/5ed52fc7
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/5ed52fc7
Branch: refs/heads/master
Commit: 5ed52fc7abf50049ef102e4ad1c7e0f4ef0c6011
Parents: f241998
Author: marios <ma...@redhat.com>
Authored: Wed Nov 14 09:42:44 2012 +0200
Committer: marios <ma...@redhat.com>
Committed: Wed Nov 14 09:42:44 2012 +0200
----------------------------------------------------------------------
server/lib/cimi/helpers/cimi_helper.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/5ed52fc7/server/lib/cimi/helpers/cimi_helper.rb
----------------------------------------------------------------------
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