mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(computes): a host's CPU chart counts I/O wait as idle, and its memory in GiB
The CPU in use was the share of time not idle, with I/O wait counted as busy: a host that only waited for its disks showed 100% CPU in use. Time waiting for I/O is idle now: no CPU runs then. The memory chart divided by 1024³ and labelled the values GB; it says GiB now.
This commit is contained in:
parent
1f6cc15ddf
commit
81d183f802
4 changed files with 15 additions and 5 deletions
|
|
@ -159,6 +159,6 @@ class GraphScriptTestCase(TestCase):
|
|||
# a host that could not be read leaves a gap and keeps the memory axis
|
||||
self.assertEqual((result["mem"], result["memMax"]), ([1, None], 2))
|
||||
# the readings in words, and since when they are not updated
|
||||
self.assertEqual(result["shown"], ["3 %", "1 / 2 GB", "Updated at t."])
|
||||
self.assertEqual(result["shown"], ["3 %", "1 / 2 GiB", "Updated at t."])
|
||||
self.assertEqual(result["state"], "Not updated since t.")
|
||||
self.assertTrue(result["label"].endswith(": 3 % (average over 5.1 s)"), result["label"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue