diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-10-11 11:46:59 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-10-25 16:39:12 +0200 |
| commit | 5f08ea93901266b6b50a5846af692fdaa90b5fde (patch) | |
| tree | bd8954d9987e3b646dd163bbb7072097f8cab43d | |
| parent | 6fe536c63a70eec9a378b2f82a925f8063bf787a (diff) | |
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.
| -rw-r--r-- | opendc-trace/opendc-trace-azure/src/main/kotlin/org/opendc/trace/azure/AzureResourceTableReader.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
