Commit e056cb01 by Guba Sándor

scheduler: removed call from property

parent 9aac4f3f
......@@ -51,7 +51,7 @@ def has_enough_ram(ram_size, node):
ram_size mebibytes of memory; otherwise, false.
"""
total = node.ram_size
used = (node.ram_usage() / 100) * total
used = (node.ram_usage / 100) * total
unused = total - used
overcommit = node.ram_size_with_overcommit
......@@ -66,7 +66,7 @@ def free_cpu_time(node):
Higher values indicate more idle time.
"""
activity = node.cpu_usage() / 100
activity = node.cpu_usage / 100
inactivity = 1 - activity
cores = node.num_cores
return cores * inactivity
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 sign in to comment