ia64/xen-unstable

changeset 15771:2ece8ff05ce7

xend: Avoid unnecessary writes to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Aug 17 09:59:28 2007 +0100 (2007-08-17)
parents cd511c380e03
children 458e8b37aec8
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Aug 16 16:00:17 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Aug 17 09:59:28 2007 +0100
     1.3 @@ -981,7 +981,7 @@ class XendDomainInfo:
     1.4              changed = True
     1.5  
     1.6          # Check if the rtc offset has changes
     1.7 -        if vm_details.get("rtc/timeoffset", 0) != self.info["platform"].get("rtc_timeoffset", 0):
     1.8 +        if vm_details.get("rtc/timeoffset", "0") != self.info["platform"].get("rtc_timeoffset", "0"):
     1.9              self.info["platform"]["rtc_timeoffset"] = vm_details.get("rtc/timeoffset", 0)
    1.10              changed = True
    1.11