diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteExecutor.kt b/theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteExecutor.kt index b98f8c438e9c46aeec4ed699b25cb989533b8334..2abfd8ce8b012a6f9738b4c384cc5cff33382509 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteExecutor.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteExecutor.kt @@ -28,7 +28,7 @@ class TheodoliteExecutor() { wgImageURL = "ghcr.io/cau-se/theodolite-uc1-kstreams-workload-generator:latest" )) val results: Results = Results() - val executionDuration = Duration.ofSeconds(60*5 ) + val executionDuration = Duration.ofSeconds(60*5) val executor: BenchmarkExecutor = KafkaBenchmarkExecutor(benchmark, results, executionDuration) val restrictionStrategy = LowerBoundRestriction(results) diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/BinarySearch.kt b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/BinarySearch.kt index 49cec7416ac9d366dbf35ec225b49d17d54b1043..3c6fc2eee9a9bde99682633d0922d9a06629875f 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/BinarySearch.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/strategies/searchstrategy/BinarySearch.kt @@ -20,7 +20,7 @@ class BinarySearch(benchmarkExecutor: BenchmarkExecutor, results: Results) : Sea throw IllegalArgumentException() } // special case: length == 1 or 2 - if (lower == upper ) { + if (lower == upper) { if (this.benchmarkExecutor.runExperiment(load, resources[lower])) return lower else { if (lower + 1 == resources.size) return - 1