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

minor code enhancements

parent 8856acd4
No related branches found
No related tags found
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( ...@@ -40,11 +40,10 @@ class AnalysisExecutor(
var repetitionCounter = 1 var repetitionCounter = 1
try { try {
var resultsFolder: String = System.getenv("RESULTS_FOLDER") var resultsFolder: String = System.getenv("RESULTS_FOLDER") ?: ""
if (resultsFolder.isNotEmpty()){ if (resultsFolder.isNotEmpty()){
resultsFolder += "/" resultsFolder += "/"
} }
val prometheusData = executionIntervals val prometheusData = executionIntervals
.map { interval -> fetcher.fetchMetric( .map { interval -> fetcher.fetchMetric(
start = interval.first, start = interval.first,
......
...@@ -25,7 +25,7 @@ class BenchmarkExecutorImpl( ...@@ -25,7 +25,7 @@ class BenchmarkExecutorImpl(
override fun runExperiment(load: LoadDimension, res: Resource): Boolean { override fun runExperiment(load: LoadDimension, res: Resource): Boolean {
var result = false var result = false
val executionIntervals: MutableList<Pair<Instant, Instant>> = ArrayList(repetitions) val executionIntervals: MutableList<Pair<Instant, Instant>> = ArrayList()
for (i in 1.rangeTo(repetitions)) { for (i in 1.rangeTo(repetitions)) {
logger.info { "Run repetition $i/$repetitions" } logger.info { "Run repetition $i/$repetitions" }
......
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