ia64/xen-unstable

changeset 1500:90c79ca0b23e

bitkeeper revision 1.976.1.1 (40d1bc25lvWeLx83AKQLiEILv4stIg)

bug fix to xm_dom_control
author iap10@labyrinth.cl.cam.ac.uk
date Thu Jun 17 15:43:33 2004 +0000 (2004-06-17)
parents c2247f632d3f
children aab6212ef9c5
files tools/examples/xm_dom_control.py
line diff
     1.1 --- a/tools/examples/xm_dom_control.py	Thu Jun 17 13:18:35 2004 +0000
     1.2 +++ b/tools/examples/xm_dom_control.py	Thu Jun 17 15:43:33 2004 +0000
     1.3 @@ -137,9 +137,8 @@ elif cmd == 'list':
     1.4          d['mem'] = int(sxp.child_value(info, 'memory', '0'))
     1.5          d['cpu'] = int(sxp.child_value(info, 'cpu', '0'))
     1.6          d['state'] = sxp.child_value(info, 'state', '??')
     1.7 -        d['cpu_time'] = float(sxp.child_value(info, 'cpu_time', '0')
     1.8 -        print ("%(dom)-4d %(name)-16s %(mem)7d %(cpu)3d %(state)5s %(cpu_time)8.2f"
     1.9 -               % d)
    1.10 +        d['cpu_time'] = float(sxp.child_value(info, 'cpu_time', '0'))
    1.11 +        print ("%(dom)-4d %(name)-16s %(mem)7d %(cpu)3d %(state)5s %(cpu_time)8.2f" % d)
    1.12  
    1.13  elif cmd == 'unwatch':
    1.14      auto_restart_kill(dom)