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

fixed test runtime issue

parent 0d830b90
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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