On Nov 12, 2012, at 4:36 PM, [email protected] wrote:

ACK to serie, tested and works well :)

  -- Michal

> From: marios <[email protected]>
> 
> 
> 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 b61c7d2..f5e2dc3 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
> +        (value*1024*1024).to_i
>       when "MB"
> -        value*1024
> +        (value*1024).to_i
>       else
>         nil # should probably be exploding something here...
>       end
> -- 
> 1.7.11.7
> 

Michal Fojtik
http://deltacloud.org
[email protected]



Reply via email to