Commit ac3805cb authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

show the amount of free cpus more accurately in cluster-free

parent 0b6ff29c
......@@ -37,7 +37,7 @@ for res in result:
print res[0], ": ", repr(int(res[1] - res[2] + LOAD_GRACE)).rjust(2), \
"free ( of", repr(res[1]).rjust(2), ")"
total += int(res[1] - res[2] + LOAD_GRACE)
total += max(int(res[1] - res[2] + LOAD_GRACE), 0)
print
print "Total:", total, "free processors"
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