direct-io.hg

changeset 1502:7916e2d4ce11

bitkeeper revision 1.980 (40d1bf9b6R-fYlUdANMWAhHfwyItoQ)

xm_dom_control bug fix
author iap10@labyrinth.cl.cam.ac.uk
date Thu Jun 17 15:58:19 2004 +0000 (2004-06-17)
parents aab6212ef9c5
children cd6f5625b3d7
files tools/examples/xm_dom_control.py tools/xenmgr/lib/XendDomainInfo.py
line diff
     1.1 --- a/tools/examples/xm_dom_control.py	Thu Jun 17 15:43:44 2004 +0000
     1.2 +++ b/tools/examples/xm_dom_control.py	Thu Jun 17 15:58:19 2004 +0000
     1.3 @@ -129,7 +129,9 @@ elif cmd == 'pincpu':
     1.4  
     1.5  elif cmd == 'list':
     1.6      print 'Dom  Name             Mem(MB)  CPU  State  Time(s)'
     1.7 -    for dom in server.xend_domains():
     1.8 +    doms = server.xend_domains()
     1.9 +    doms.sort()
    1.10 +    for dom in doms:
    1.11          info = server.xend_domain(dom)
    1.12          d = {}
    1.13          d['dom'] = int(dom)
     2.1 --- a/tools/xenmgr/lib/XendDomainInfo.py	Thu Jun 17 15:43:44 2004 +0000
     2.2 +++ b/tools/xenmgr/lib/XendDomainInfo.py	Thu Jun 17 15:58:19 2004 +0000
     2.3 @@ -116,7 +116,7 @@ class XendDomainInfo:
     2.4              state = run + stop
     2.5              sxpr.append(['cpu', self.info['cpu']])
     2.6              sxpr.append(['state', state])
     2.7 -            sxpr.append(['cpu_time', self.info['cpu_time']/1e8])
     2.8 +            sxpr.append(['cpu_time', self.info['cpu_time']/1e9])
     2.9          if self.console:
    2.10              sxpr.append(self.console.sxpr())
    2.11          if self.config: