app: fix get_free_xen_memory function
It's app.vmm.xc, not app.xc. Since nobody have noticed it, this function might be unused...
This commit is contained in:
parent
361550c621
commit
5908ab1568
@ -309,7 +309,7 @@ class QubesHost:
|
|||||||
:raises NotImplementedError: when not under Xen
|
:raises NotImplementedError: when not under Xen
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._physinfo = self.app.xc.physinfo()
|
self._physinfo = self.app.vmm.xc.physinfo()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise NotImplementedError('This function requires Xen hypervisor')
|
raise NotImplementedError('This function requires Xen hypervisor')
|
||||||
return int(self._physinfo['free_memory'])
|
return int(self._physinfo['free_memory'])
|
||||||
|
Loading…
Reference in New Issue
Block a user