mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
bug #1079: Image quota error with ruby 1.8.7
This commit is contained in:
1 parent
5c3b03ba44
commit
c38bfca219
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user