From 193fa296003c0d13cfa96a7a4234ee23259cc045 Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Mon, 21 Nov 2016 11:31:22 +0100 Subject: [PATCH] Fixed taskset generation. --- tasksetgen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasksetgen.py b/tasksetgen.py index c89f6e9..f25a45a 100755 --- a/tasksetgen.py +++ b/tasksetgen.py @@ -196,11 +196,11 @@ def main(): tasksets.append(taskset) else: 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)) - if taskset_util < utility[1]: - if len(taskset) >= args.cores + 1: - tasksets.append(taskset) + if taskset_util >= utility[0]: + if len(taskset) >= args.cores + 1: + tasksets.append(taskset) now = datetime.datetime.now() -- libgit2 0.26.0