Skip to contentSkip to conversation

avoid wasteful storing to xenstore

PATCH New Kouya Shimura 1 participant 1 message Aug 16, 2007

lore
Share & tools
lore
#0 lore raw

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

tools/python/xen/xend/XendDomainInfo.py +1 -1
diff -r cd51fa91956b tools/python/xen/xend/XendDomainInfo.py
@@ -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