From 63dab2a5e9ac8e80d5dfb57b34bc6af7aa7ce80b Mon Sep 17 00:00:00 2001 From: Maxime Chéramy Date: Wed, 25 Jul 2018 22:02:05 +0200 Subject: [PATCH] fix integer division with Python 2 in Ripoll generator --- simso/generator/task_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simso/generator/task_generator.py b/simso/generator/task_generator.py index 7f9a9d5..9056cc9 100755 --- a/simso/generator/task_generator.py +++ b/simso/generator/task_generator.py @@ -141,7 +141,7 @@ def gen_ripoll(nsets, compute, deadline, period, target_util): d = c + random.randint(0, deadline) p = d + random.randint(0, period) task_set.append((c, d, p)) - total_util += c / p + total_util += float(c) / p sets.append(task_set) return sets -- libgit2 0.26.0