[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Avoid unnecessary writes to xenstore.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1187341168 -3600 # Node ID 2ece8ff05ce713a83a3d0f729eaec414f0a8d91c # Parent cd511c380e037f41595b44db920ec903bc7724c3 xend: Avoid unnecessary writes to xenstore. Type of rtc/timeoffset is not 'int' but 'str'. Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r cd511c380e03 -r 2ece8ff05ce7 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Thu Aug 16 16:00:17 2007 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Aug 17 09:59:28 2007 +0100 @@ -981,7 +981,7 @@ class XendDomainInfo: changed = True # Check if the rtc offset has changes - if vm_details.get("rtc/timeoffset", 0) != self.info["platform"].get("rtc_timeoffset", 0): + if vm_details.get("rtc/timeoffset", "0") != self.info["platform"].get("rtc_timeoffset", "0"): self.info["platform"]["rtc_timeoffset"] = vm_details.get("rtc/timeoffset", 0) changed = True _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |