avoid wasteful storing to xenstore
PATCH 1/1 avoid wasteful storing to xenstore
Looking at xend.log, I found wasteful storing to xenstore. Type of rtc/timeoffset is not 'int' but 'str'.
Thanks,
Kouya
Signed-off-by Kouya Shimura <[email protected]>
tools/python/xen/xend/XendDomainInfo.py +1 -1
@@ -909,7 +909,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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel