Fixed a bug in the OTF wrapper
This commit is contained in:
parent
c6419d75c7
commit
7890097856
@ -40,7 +40,7 @@ def otf_factory(time_step, migration_time, params):
|
|||||||
"""
|
"""
|
||||||
migration_time_normalized = float(migration_time) / time_step
|
migration_time_normalized = float(migration_time) / time_step
|
||||||
def otf_wrapper(utilization, state=None):
|
def otf_wrapper(utilization, state=None):
|
||||||
if state == None:
|
if state is None or state == {}:
|
||||||
state = {'overload': 0,
|
state = {'overload': 0,
|
||||||
'total': 0}
|
'total': 0}
|
||||||
return otf(params['otf'],
|
return otf(params['otf'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user