Commit 259f87fa by Tobias Langer

Fixed endless loop in taskset generation.

parent 193fa296
......@@ -195,9 +195,10 @@ def main():
if len(taskset) >= args.cores + 1:
tasksets.append(taskset)
else:
taskset_util = calc_utilization(taskset)
taskset_util = 0
while taskset_util < utility[1]:
taskset.append(create_task(distribution))
taskset_util = calc_utilization(taskset)
if taskset_util >= utility[0]:
if len(taskset) >= args.cores + 1:
tasksets.append(taskset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment