qvm-template: Change size unit from kB to MB.

This commit is contained in:
WillyPillow 2020-08-30 01:34:03 +08:00
parent d0fb975958
commit 5c5758783b
No known key found for this signature in database
GPG Key ID: 3839E194B1415A9C

View File

@ -38,7 +38,7 @@ class Template(typing.NamedTuple):
'Name',
'Version',
'Reponame',
'Size (kB)',
'Size (MB)',
'Build Time',
'Install Time',
'License',
@ -53,7 +53,7 @@ class Template(typing.NamedTuple):
entry['name'],
'%s:%s-%s' % (entry['epoch'], entry['version'], entry['release']),
entry['reponame'],
int(entry['size']) // 1000,
int(entry['size']) // 1000000,
entry['buildtime'],
entry['installtime'],
entry['license'],