From fe1d905edacf9170612aa5f36fd4bb3197445f6b Mon Sep 17 00:00:00 2001 From: Nikolaus Krismer <niko@krismer.de> Date: Tue, 25 Mar 2014 19:34:34 +0100 Subject: [PATCH] fixed test runtime issue --- .../java/it/unibz/inf/isochrone/network/RuntimeComplex.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/it/unibz/inf/isochrone/network/RuntimeComplex.java b/src/test/java/it/unibz/inf/isochrone/network/RuntimeComplex.java index 1c025a39..e20a31bd 100644 --- a/src/test/java/it/unibz/inf/isochrone/network/RuntimeComplex.java +++ b/src/test/java/it/unibz/inf/isochrone/network/RuntimeComplex.java @@ -156,8 +156,8 @@ public final class RuntimeComplex { final Set<Integer> times = new TreeSet<Integer>(); for (int offset : RUNTIME_OFFSETS) { int stepWidth = (offset / RUNTIME_POINTS_PER_OFFSET); - for (int i = stepWidth; i < offset; i += stepWidth) { - int runtime = Math.max(offset, offset * i); + for (int i = 1; i < offset; i += stepWidth) { + int runtime = offset * i; if (runtime > MAX_RUNTIME) { return times; } -- GitLab