From a726d4c4a222216b40eb53cb36559e69bfd19d34 Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Wed, 23 Nov 2016 19:26:29 +0100 Subject: [PATCH] Fixed error - tasklist was not copied, but referenced. --- tasksetgen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasksetgen.py b/tasksetgen.py index 4768b83..c639d66 100755 --- a/tasksetgen.py +++ b/tasksetgen.py @@ -21,6 +21,7 @@ import random import argparse import json import math +import copy from enum import Enum def query_yes_no(question, default=None): @@ -202,6 +203,7 @@ def main(): if utility[0] <= taskset_util <= utility[1]: if len(taskset) >= args.cores + 1: tasksets.append(taskset) + taskset = copy.deepcopy(taskset) now = datetime.datetime.now() -- libgit2 0.26.0