Commit 5b929c0d by Tobias Langer

Checked for too long hyper periods.

parent 0eebc506
...@@ -200,7 +200,7 @@ def main(): ...@@ -200,7 +200,7 @@ def main():
tasksets.append(taskset) tasksets.append(taskset)
else: else:
taskset_util = 0 taskset_util = 0
while taskset_util < utility[1]: while taskset_util < utility[1] and hyperperiod(taskset) < 300000:
taskset.append(create_task(distribution)) taskset.append(create_task(distribution))
taskset_util = calc_utilization(taskset) taskset_util = calc_utilization(taskset)
if utility[0] <= taskset_util <= utility[1]: if utility[0] <= taskset_util <= utility[1]:
......
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