Skip to content
Snippets Groups Projects
Commit ef532247 authored by Sören Henning's avatar Sören Henning
Browse files

Fix CSV number handling

parent 7453e3f8
No related branches found
No related tags found
3 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Pipeline #2823 canceled
......@@ -41,9 +41,11 @@ class CsvExporter {
val dataList = mutableListOf<List<String>>()
if (values != null) {
for (x in values) {
val y = x as List<*>
dataList.add(listOf(name, "${y[0]}", "${y[1]}"))
for (maybeValuePair in values) {
val valuePair = maybeValuePair as List<*>
val timestamp = (valuePair[0] as Double).toLong().toString()
val value = valuePair[1].toString()
dataList.add(listOf(name, timestamp, value))
}
}
return Collections.unmodifiableList(dataList)
......
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