From 5f08ea93901266b6b50a5846af692fdaa90b5fde Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 11 Oct 2021 11:46:59 +0200 Subject: fix(trace): Fix timestamp retrieval for Azure trace This change addresses an issue where the timestamps in the Azure trace where not retrieved correctly from the files. --- .../main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opendc-trace/opendc-trace-azure/src') diff --git a/opendc-trace/opendc-trace-azure/src/main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt b/opendc-trace/opendc-trace-azure/src/main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt index a6352613..6246dc35 100644 --- a/opendc-trace/opendc-trace-azure/src/main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt +++ b/opendc-trace/opendc-trace-azure/src/main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt @@ -52,8 +52,8 @@ internal class AzureResourceTableReader(private val parser: CsvParser) : TableRe when (parser.currentName) { "vm id" -> id = parser.text - "vm created" -> startTime = Instant.ofEpochSecond(parser.longValue) - "vm deleted" -> stopTime = Instant.ofEpochSecond(parser.longValue) + "timestamp vm created" -> startTime = Instant.ofEpochSecond(parser.longValue) + "timestamp vm deleted" -> stopTime = Instant.ofEpochSecond(parser.longValue) "vm virtual core count" -> cpuCores = parser.intValue "vm memory" -> memCapacity = parser.doubleValue * 1e6 // GB to KB } -- cgit v1.2.3