cleanup whitespace mess
This commit is contained in:
parent
b04d1ce005
commit
01bc257265
@ -35,10 +35,8 @@ def main():
|
|||||||
action="store_true", default=False,
|
action="store_true", default=False,
|
||||||
help="n m : One line summary of top n vms with more than m cpu_time %")
|
help="n m : One line summary of top n vms with more than m cpu_time %")
|
||||||
|
|
||||||
|
|
||||||
(options, args) = parser.parse_args ()
|
(options, args) = parser.parse_args ()
|
||||||
|
|
||||||
|
|
||||||
qvm_collection = QubesVmCollection()
|
qvm_collection = QubesVmCollection()
|
||||||
qvm_collection.lock_db_for_reading()
|
qvm_collection.lock_db_for_reading()
|
||||||
qvm_collection.load()
|
qvm_collection.load()
|
||||||
@ -47,9 +45,7 @@ def main():
|
|||||||
fields_to_display = ["name", "cpu", "mem"]
|
fields_to_display = ["name", "cpu", "mem"]
|
||||||
|
|
||||||
cpu_usages = None
|
cpu_usages = None
|
||||||
|
|
||||||
qhost = QubesHost()
|
qhost = QubesHost()
|
||||||
|
|
||||||
(measure_time, cpu_usages) = qhost.measure_cpu_usage(qvm_collection)
|
(measure_time, cpu_usages) = qhost.measure_cpu_usage(qvm_collection)
|
||||||
|
|
||||||
vms_list = [vm for vm in qvm_collection.values() if vm.is_running()]
|
vms_list = [vm for vm in qvm_collection.values() if vm.is_running()]
|
||||||
|
Loading…
Reference in New Issue
Block a user