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
Branches
Tags
1 merge request!161Resolve L2SS-398 "Archiver multi es"
...@@ -118,9 +118,8 @@ class Archiver(): ...@@ -118,9 +118,8 @@ class Archiver():
for es_name in es_list: for es_name in es_list:
es = DeviceProxy(es_name) es = DeviceProxy(es_name)
load_dict[es_name]=float(es.AttributeRecordFreq or 0) load_dict[es_name]=float(es.AttributeRecordFreq or 0)
min_load = min(load_dict.values())
# Return the subscriber's name with min load # 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 return min_es
def apply_selector(self): def apply_selector(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment