Commit 193fa296 by Tobias Langer

Fixed taskset generation.

parent dd0d71a4
...@@ -196,9 +196,9 @@ def main(): ...@@ -196,9 +196,9 @@ def main():
tasksets.append(taskset) tasksets.append(taskset)
else: else:
taskset_util = calc_utilization(taskset) taskset_util = calc_utilization(taskset)
while taskset_util < utility[0] and taskset_util < utility[1]: while taskset_util < utility[1]:
taskset.append(create_task(distribution)) taskset.append(create_task(distribution))
if taskset_util < utility[1]: if taskset_util >= utility[0]:
if len(taskset) >= args.cores + 1: if len(taskset) >= args.cores + 1:
tasksets.append(taskset) 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