Commit e4a80467 authored by akhuziy's avatar akhuziy
Browse files

fixed bug in rcm

parent 07f13cb9
......@@ -45,15 +45,17 @@ def accepts(*types, **kw):
msg = TypeError.args
raise TypeError(msg)
@accepts(NodeData, int)
@accepts(NodeData)
def node_has_high_load_interval(node):
has_high_load = False
conseq_points = 0
max_points = ceil(SeqVals.delta / LONG_DUR_SEC)
max_load = node.sockets * node.cores_per_socket * (node.phys_thr_core + node.virt_thr_core)
seq = node.seq_load_max
max_points = math.ceil(seq.delta / LONG_DUR_SEC)
max_load = node.sockets * node.cores_per_socket * (node.phys_thr_core + node.virt_thr_core)
for p in seq.seq:
if conseq_points >= max_points:
has_high_load = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment