diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/examples/xm_dom_control.py | 4 | ||||
-rw-r--r-- | tools/xenmgr/lib/XendDomainInfo.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/examples/xm_dom_control.py b/tools/examples/xm_dom_control.py index 2c93a9fed1..d098ee4a24 100755 --- a/tools/examples/xm_dom_control.py +++ b/tools/examples/xm_dom_control.py @@ -129,7 +129,9 @@ elif cmd == 'pincpu': elif cmd == 'list': print 'Dom Name Mem(MB) CPU State Time(s)' - for dom in server.xend_domains(): + doms = server.xend_domains() + doms.sort() + for dom in doms: info = server.xend_domain(dom) d = {} d['dom'] = int(dom) diff --git a/tools/xenmgr/lib/XendDomainInfo.py b/tools/xenmgr/lib/XendDomainInfo.py index 2318df68fc..b03d83a15d 100644 --- a/tools/xenmgr/lib/XendDomainInfo.py +++ b/tools/xenmgr/lib/XendDomainInfo.py @@ -116,7 +116,7 @@ class XendDomainInfo: state = run + stop sxpr.append(['cpu', self.info['cpu']]) sxpr.append(['state', state]) - sxpr.append(['cpu_time', self.info['cpu_time']/1e8]) + sxpr.append(['cpu_time', self.info['cpu_time']/1e9]) if self.console: sxpr.append(self.console.sxpr()) if self.config: |