Added new test for cap.
This commit is contained in:
parent
0fd8afa87c
commit
e69ab121e8
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ class TestStrategy(unittest.TestCase):
|
||||||
}
|
}
|
||||||
load = (0.7 * max(node_loads_08.values()) +
|
load = (0.7 * max(node_loads_08.values()) +
|
||||||
0.3 * max(node_loads_05.values()))
|
0.3 * max(node_loads_05.values()))
|
||||||
cap = 1 / load
|
cap = (0.7 * 1 / max(node_loads_08.values()) +
|
||||||
|
0.3 * 1/ max(node_loads_05.values()))
|
||||||
self.assertAlmostEqual(sigma.load(read_fraction=fr), load)
|
self.assertAlmostEqual(sigma.load(read_fraction=fr), load)
|
||||||
self.assertAlmostEqual(sigma.capacity(read_fraction=fr), cap)
|
self.assertAlmostEqual(sigma.capacity(read_fraction=fr), cap)
|
||||||
node_throughputs = {
|
node_throughputs = {
|
||||||
|
|
Loading…
Reference in a new issue