From f1c61aba57189f54c261ae8cc5850c21bf4022e8 Mon Sep 17 00:00:00 2001 From: jzhou Date: Mon, 16 Feb 2009 17:36:56 +0000 Subject: [PATCH] bug fix --- Robust/src/Benchmarks/Scheduling/Fractal/Fractal.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Robust/src/Benchmarks/Scheduling/Fractal/Fractal.java b/Robust/src/Benchmarks/Scheduling/Fractal/Fractal.java index 4f5ed978..a5bbfe5b 100644 --- a/Robust/src/Benchmarks/Scheduling/Fractal/Fractal.java +++ b/Robust/src/Benchmarks/Scheduling/Fractal/Fractal.java @@ -112,7 +112,12 @@ public class Fractal { int id = this.id; int group = this.group; float startb = bmin + bdelta * id; - float endb = bmax - bdelta * (group - id - 1); + float endb; + if(id + 1 == group) { + endb = bmax; + } else { + endb = bmax + bdelta * id; + } float bspan = bdelta * group; for(a=amin;a