Skip to content
Snippets Groups Projects
Commit 4ae892bd authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

minor code enhancements

parent 8856acd4
Branches
Tags
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!137Allow multiple repititions of an experiment,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -40,11 +40,10 @@ class AnalysisExecutor(
var repetitionCounter = 1
try {
var resultsFolder: String = System.getenv("RESULTS_FOLDER")
var resultsFolder: String = System.getenv("RESULTS_FOLDER") ?: ""
if (resultsFolder.isNotEmpty()){
resultsFolder += "/"
}
val prometheusData = executionIntervals
.map { interval -> fetcher.fetchMetric(
start = interval.first,
......
......@@ -25,7 +25,7 @@ class BenchmarkExecutorImpl(
override fun runExperiment(load: LoadDimension, res: Resource): Boolean {
var result = false
val executionIntervals: MutableList<Pair<Instant, Instant>> = ArrayList(repetitions)
val executionIntervals: MutableList<Pair<Instant, Instant>> = ArrayList()
for (i in 1.rangeTo(repetitions)) {
logger.info { "Run repetition $i/$repetitions" }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment