Skip to content
Snippets Groups Projects
Commit 358039f3 authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

fixed test runtimes issue

parent fe1d905e
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,8 @@ public final class RuntimeComplex { ...@@ -156,8 +156,8 @@ public final class RuntimeComplex {
final Set<Integer> times = new TreeSet<Integer>(); final Set<Integer> times = new TreeSet<Integer>();
for (int offset : RUNTIME_OFFSETS) { for (int offset : RUNTIME_OFFSETS) {
int stepWidth = (offset / RUNTIME_POINTS_PER_OFFSET); int stepWidth = (offset / RUNTIME_POINTS_PER_OFFSET);
for (int i = 1; i < offset; i += stepWidth) { for (int i = 0; i < offset; i += stepWidth) {
int runtime = offset * i; int runtime = Math.max(offset, offset * i);
if (runtime > MAX_RUNTIME) { if (runtime > MAX_RUNTIME) {
return times; return times;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment