def print_env_available_res_rel(env): for host in env["hosts"]: avail = host_mod.compute_pm_available_res( host) / host["capacity"] * 100 print("%s available relative value: %s percent" % (host["id"], str(avail)))
def print_env_available_res(env): for host in env["hosts"]: avail = host_mod.compute_pm_available_res(host) print host["id"] + " available absolute value: " + str(avail)