Fixed a bug in the OTF wrapper

This commit is contained in:
Anton Beloglazov 2013-01-22 12:17:31 +11:00
parent c6419d75c7
commit 7890097856

View File

@ -40,7 +40,7 @@ def otf_factory(time_step, migration_time, params):
"""
migration_time_normalized = float(migration_time) / time_step
def otf_wrapper(utilization, state=None):
if state == None:
if state is None or state == {}:
state = {'overload': 0,
'total': 0}
return otf(params['otf'],