ia64/xen-unstable

changeset 1544:3463eaa8491e

bitkeeper revision 1.994.1.7 (40d86324dX6OPOXf6BKpjF4lrFQE0g)

ui tweak
author kaf24@scramble.cl.cam.ac.uk
date Tue Jun 22 16:49:40 2004 +0000 (2004-06-22)
parents e5ddcc390f7c
children aeb5e98fd252
files tools/examples/xc_dom_control.py tools/xenmgr/lib/XendDomainInfo.py
line diff
     1.1 --- a/tools/examples/xc_dom_control.py	Tue Jun 22 15:40:04 2004 +0000
     1.2 +++ b/tools/examples/xc_dom_control.py	Tue Jun 22 16:49:40 2004 +0000
     1.3 @@ -88,11 +88,11 @@ elif cmd == 'list':
     1.4      print 'Dom  Name             Mem(kb)  CPU  State  Time(ms)'
     1.5      for domain in xc.domain_getinfo():
     1.6  
     1.7 -	run   = (domain['running'] and 'r') or '-'
     1.8 -        block = (domain['blocked'] and 'b') or '-'
     1.9 -	stop  = (domain['paused']  and 'p') or '-'
    1.10 -	susp  = (domain['shutdown'] and 's') or '-'
    1.11 -	crash = (domain['crashed'] and 'c') or '-'
    1.12 +	run   = (domain['running'] and 'R') or 'r'
    1.13 +        block = (domain['blocked'] and 'B') or 'b'
    1.14 +	stop  = (domain['paused']  and 'P') or 'p'
    1.15 +	susp  = (domain['shutdown'] and 'S') or 's'
    1.16 +	crash = (domain['crashed'] and 'C') or 'c'
    1.17  
    1.18          domain['state'] = run + block + stop + susp + crash
    1.19          domain['cpu_time'] = domain['cpu_time']/1e6
     2.1 --- a/tools/xenmgr/lib/XendDomainInfo.py	Tue Jun 22 15:40:04 2004 +0000
     2.2 +++ b/tools/xenmgr/lib/XendDomainInfo.py	Tue Jun 22 16:49:40 2004 +0000
     2.3 @@ -111,11 +111,11 @@ class XendDomainInfo:
     2.4                  ['name', self.name],
     2.5                  ['memory', self.memory] ]
     2.6          if self.info:
     2.7 -            run   = (self.info['running'] and 'r') or '-'
     2.8 -            block = (self.info['blocked'] and 'b') or '-'
     2.9 -            stop  = (self.info['paused']  and 'p') or '-'
    2.10 -            susp  = (self.info['shutdown'] and 's') or '-'
    2.11 -            crash = (self.info['crashed'] and 'c') or '-'
    2.12 +            run   = (self.info['running'] and 'R') or 'r'
    2.13 +            block = (self.info['blocked'] and 'B') or 'b'
    2.14 +            stop  = (self.info['paused']  and 'P') or 'p'
    2.15 +            susp  = (self.info['shutdown'] and 'S') or 's'
    2.16 +            crash = (self.info['crashed'] and 'C') or 'c'
    2.17              state = run + block + stop + susp + crash
    2.18              sxpr.append(['cpu', self.info['cpu']])
    2.19              sxpr.append(['state', state])