Make pylint happier
This commit is contained in:
parent
9734921d9c
commit
d2d1ffb806
@ -36,6 +36,8 @@ class GUI(qubes.ext.Extension):
|
|||||||
|
|
||||||
@qubes.ext.handler('property-set:guivm')
|
@qubes.ext.handler('property-set:guivm')
|
||||||
def on_property_set(self, subject, event, name, newvalue, oldvalue=None):
|
def on_property_set(self, subject, event, name, newvalue, oldvalue=None):
|
||||||
|
# pylint: disable=unused-argument,no-self-use
|
||||||
|
|
||||||
# Clean other 'guivm-XXX' tags.
|
# Clean other 'guivm-XXX' tags.
|
||||||
# gui-daemon can connect to only one domain
|
# gui-daemon can connect to only one domain
|
||||||
tags_list = list(subject.tags)
|
tags_list = list(subject.tags)
|
||||||
|
@ -2041,8 +2041,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
# this does not work, because libvirt
|
# this does not work, because libvirt
|
||||||
# return self.libvirt_domain.getCPUStats(
|
# return self.libvirt_domain.getCPUStats(
|
||||||
# libvirt.VIR_NODE_CPU_STATS_ALL_CPUS, 0)[0]['cpu_time']/10**9
|
# libvirt.VIR_NODE_CPU_STATS_ALL_CPUS, 0)[0]['cpu_time']/10**9
|
||||||
|
|
||||||
return self.libvirt_domain.info()[4]
|
return self.libvirt_domain.info()[4]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user