Fix generating documentation
This commit is contained in:
parent
c0741972ba
commit
62da967f78
@ -17,7 +17,6 @@ manpages and API documentation. For primary user documentation, see
|
|||||||
qubes-vm/index
|
qubes-vm/index
|
||||||
qubes-events
|
qubes-events
|
||||||
qubes-exc
|
qubes-exc
|
||||||
qubes-plugins
|
|
||||||
qubes-ext
|
qubes-ext
|
||||||
qubes-log
|
qubes-log
|
||||||
qubes-tools/index
|
qubes-tools/index
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
:py:mod:`qubes.plugins` -- Plugin helpers
|
|
||||||
=========================================
|
|
||||||
|
|
||||||
.. automodule:: qubes.plugins
|
|
||||||
:members:
|
|
||||||
:show-inheritance:
|
|
||||||
|
|
||||||
.. vim: ts=3 sw=3 et
|
|
@ -70,7 +70,10 @@ class SystemState(object):
|
|||||||
# see https://wiki.openstack.org/wiki/XenServer/Overhead
|
# see https://wiki.openstack.org/wiki/XenServer/Overhead
|
||||||
# we divide total and free physical memory by this to get "assignable" memory
|
# we divide total and free physical memory by this to get "assignable" memory
|
||||||
self.MEM_OVERHEAD_FACTOR = 1.0 / 1.00781
|
self.MEM_OVERHEAD_FACTOR = 1.0 / 1.00781
|
||||||
self.ALL_PHYS_MEM = int(self.xc.physinfo()['total_memory']*1024 * self.MEM_OVERHEAD_FACTOR)
|
try:
|
||||||
|
self.ALL_PHYS_MEM = int(self.xc.physinfo()['total_memory']*1024 * self.MEM_OVERHEAD_FACTOR)
|
||||||
|
except xen.lowlevel.xc.Error:
|
||||||
|
self.ALL_PHYS_MEM = 0
|
||||||
|
|
||||||
def add_domain(self, id):
|
def add_domain(self, id):
|
||||||
self.log.debug('add_domain(id={!r})'.format(id))
|
self.log.debug('add_domain(id={!r})'.format(id))
|
||||||
|
Loading…
Reference in New Issue
Block a user