Ugly workaround for ticket #321
This commit is contained in:
parent
9bb774cf34
commit
8125fd6104
@ -218,7 +218,12 @@ class LoadChartWidget (QWidget):
|
|||||||
|
|
||||||
def update_load (self, vm, cpu_load):
|
def update_load (self, vm, cpu_load):
|
||||||
self.load = cpu_load if vm.last_power_state else 0
|
self.load = cpu_load if vm.last_power_state else 0
|
||||||
assert self.load >= 0 and self.load <= 100, "load = {0}".format(self.load)
|
assert self.load >= 0, "load = {0}".format(self.load)
|
||||||
|
# assert self.load >= 0 and self.load <= 100, "load = {0}".format(self.load)
|
||||||
|
if self.load > 100:
|
||||||
|
# FIXME: This is an ugly workaround :/
|
||||||
|
self.load = 100
|
||||||
|
|
||||||
self.load_history.append (self.load)
|
self.load_history.append (self.load)
|
||||||
self.repaint()
|
self.repaint()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user