Skip to content
Snippets Groups Projects
Commit 769689c2 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-398: code review

parent 3c14863b
No related branches found
No related tags found
1 merge request!161Resolve L2SS-398 "Archiver multi es"
......@@ -118,9 +118,8 @@ class Archiver():
for es_name in es_list:
es = DeviceProxy(es_name)
load_dict[es_name]=float(es.AttributeRecordFreq or 0)
min_load = min(load_dict.values())
# Return the subscriber's name with min load
min_es = list(load_dict.keys())[list(load_dict.values()).index(min_load)]
min_es = min(load_dict,key=load_dict.get)
return min_es
def apply_selector(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment