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):
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]))