WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix the xm uptime command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix the xm uptime command
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 06 Dec 2006 19:28:50 +0900
Delivery-date: Wed, 06 Dec 2006 02:29:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I saw the following Traceback message.

# xm uptime
Name                              ID Uptime
Unexpected error: exceptions.TypeError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "/usr/lib/python/xen/xm/main.py", line 1606, in main
    rc = cmd(args)
  File "/usr/lib/python/xen/xm/main.py", line 1169, in xm_uptime
    upstring = ("%(name)-32s %(domid)3d " % d) + upstring
TypeError: int argument required


This patch fixes the xm uptime command.

# xm uptime
Name                              ID Uptime
Domain-0                           0 19:25:56
vm1                                1  7:05:45
# xm uptime -s
 18:37:35 up 19:26, Domain-0 (0)
 18:37:35 up  7:05, vm1 (1)

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: uptime.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>