1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5236: round apps size (#863)

This commit is contained in:
Alejandro Huertas Herrero 2021-02-23 16:43:34 +01:00 committed by GitHub
parent b10d2cc986
commit 6c43f75bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ class OneMarket
file = app['files'][0]
size = 0
size = file['size'].to_i / (2**20) if file['size'].to_i != 0
size = (file['size'].to_f / (2**20)).ceil if file['size'].to_i != 0
print_var(tmpl, 'SIZE', size)
print_var(tmpl, 'MD5', file['md5'])