From c38bfca2198a8a9dca89f4fec27718af33a7d64d Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 23 Jan 2012 15:24:42 +0100 Subject: [PATCH] bug #1079: Image quota error with ruby 1.8.7 --- src/authm_mad/remotes/quota/quota.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/quota/quota.rb b/src/authm_mad/remotes/quota/quota.rb index c86854526e..fedddd5f3e 100644 --- a/src/authm_mad/remotes/quota/quota.rb +++ b/src/authm_mad/remotes/quota/quota.rb @@ -82,7 +82,7 @@ class Quota if template['TYPE'] == 'DATABLOCK' template['SIZE'].to_i elsif template['PATH'] - (File.size(template['PATH']).to_f / 2**20).round(2) + (File.size(template['PATH']).to_f / 2**20).round elsif template['SAVED_VM_ID'] vm_id = template['SAVED_VM_ID'].to_i disk_id = template['SAVED_DISK_ID'].to_i