Commit e9a59d82 authored by Qarnot computing's avatar Qarnot computing

Two criteria sorting

parent 23823f2e
......@@ -255,7 +255,7 @@ class ITLBClientDaemon:
return 2**32
return downtime_slo.target_value - downtime_slo.current_value
itl_powers_sla.sort(key=lambda ips: get_remaining_downtime(ips.sla), reverse=True)
itl_powers_sla.sort(key=lambda ips: (get_remaining_downtime(ips.sla), 1/ips.power), reverse=True)
for ips in itl_powers_sla:
itl = ips.itl
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment