From 155c29607808562a86e7ad30d38ddc85c82be280 Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Wed, 22 May 2013 23:59:41 +0200 Subject: [PATCH] fix small Bug for scenario C in JobGenerator --- src/at/ac/tuwien/lsdc/JobGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/at/ac/tuwien/lsdc/JobGenerator.java b/src/at/ac/tuwien/lsdc/JobGenerator.java index 3133b1b..ef3bcc2 100644 --- a/src/at/ac/tuwien/lsdc/JobGenerator.java +++ b/src/at/ac/tuwien/lsdc/JobGenerator.java @@ -124,7 +124,7 @@ public class JobGenerator { private static void generateWBAorHPA(int timestamp) { boolean wba = rand.nextBoolean(); - if (wba && (numWBA < (count / 2))) { + if ((wba && (numWBA < (count / 2))) || (numHPA == (count / 2))) { generateWBA(timestamp); } else if (numHPA < (count / 2)) { generateHPA(timestamp); -- 2.43.0