Commit af4f1a2c authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

fixed bug with allocated memory

parent cf9493c4
......@@ -80,7 +80,7 @@ def get_aggregator(job_id, type="text"):
new_node.alloc_mem = memd.get(node_id)
else:
ncpus = noded.get("sockets") * noded.get("cores_per_socket") * noded.get("virt_thr_core")
nmem = int(cud.get(node_id) * noded.get("main_mem") / ncpus)
nmem = int(cud.get(node_id) * noded.get("main_mem") / ncpus / 1000000) #in MB
new_node.alloc_mem = nmem
# for now we just account hyperthreading
......
Supports Markdown
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