mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Avoid unnecessary writes to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
1 parent
6fcad535ee
commit
0af35cef10
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||