From 358039f3e03fd45f21d777ea06e09ac7e0560f44 Mon Sep 17 00:00:00 2001 From: Nikolaus Krismer <niko@krismer.de> Date: Tue, 25 Mar 2014 19:51:38 +0100 Subject: [PATCH] fixed test runtimes 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 e20a31bd..fa9291f7 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 = 1; i < offset; i += stepWidth) { - int runtime = offset * i; + for (int i = 0; i < offset; i += stepWidth) { + int runtime = Math.max(offset, offset * i); if (runtime > MAX_RUNTIME) { return times; } -- GitLab