From: Kouya Shimura Subject: [PATCH] avoid wasteful storing to xenstore Date: Thu, 16 Aug 2007 13:28:08 +0900 Message-ID: <7klkcc85nr.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="TCvKiab9L7" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --TCvKiab9L7 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit 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 --TCvKiab9L7 Content-Type: text/plain Content-Disposition: inline; filename="XendDomainInfo.patch" Content-Transfer-Encoding: 7bit diff -r cd51fa91956b tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Sun Aug 12 14:50:02 2007 -0600 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Aug 16 11:56:20 2007 +0900 @@ -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 --TCvKiab9L7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --TCvKiab9L7--