X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/1b3bce36430d275a1b9148fb63ba601b43c4c1db..102769b5296d5a4895fff466def7c99f8a255fb3:/templates/main.py?ds=sidebyside diff --git a/templates/main.py b/templates/main.py index ab70cdd..cc8c3d8 100755 --- a/templates/main.py +++ b/templates/main.py @@ -286,7 +286,7 @@ def getDiskInfo(data_dict, machine): name = disk.guest_device_name disk_fields.extend([(x % name, y % name) for x, y in disk_fields_template]) - data_dict['%s_size' % name] = "%0.1f GB" % (disk.size / 1024.) + data_dict['%s_size' % name] = "%0.1f GiB" % (disk.size / 1024.) return disk_fields def command(user, fields): @@ -496,7 +496,7 @@ def infoDict(user, machine): display_fields = (display_fields[:disk_point] + disk_fields + display_fields[disk_point+1:]) - main_status['memory'] += ' MB' + main_status['memory'] += ' MiB' for field, disp in display_fields: if field in ('uptime', 'cputime') and locals()[field] is not None: fields.append((disp, locals()[field]))