[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] tools: Fix time offset when localtime=0
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1274858955 -3600 # Node ID e9110e15235c422949ca8f255085adef57f3c798 # Parent 72b9c78aef6bcdead03c3c36dd1bc324383ed01c tools: Fix time offset when localtime=0 localtime can be stored in vm config as a string, resulting in incorrect calculation of rtc_timeoffset. Cast localtime to int to ensure rtc_timeoffset is calculated properly. Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx> xen-unstable changeset: 21460:15f4ead9e686 xen-unstable date: Wed May 26 08:15:31 2010 +0100 --- tools/python/xen/xend/image.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 72b9c78aef6b -r e9110e15235c tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Wed May 26 08:28:56 2010 +0100 +++ b/tools/python/xen/xend/image.py Wed May 26 08:29:15 2010 +0100 @@ -129,7 +129,7 @@ class ImageHandler: self.dmargs = self.parseDeviceModelArgs(vmConfig) self.pid = None rtc_timeoffset = int(vmConfig['platform'].get('rtc_timeoffset', 0)) - if vmConfig['platform'].get('localtime', 0): + if int(vmConfig['platform'].get('localtime', 0)): if time.localtime(time.time())[8]: rtc_timeoffset -= time.altzone else: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |