diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-01 14:43:12 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-01 14:46:26 +0100 |
| commit | 181194aee520ccd12c506019800760fc81989550 (patch) | |
| tree | 187652e0c39eb6932fc0d32eeff3185834248cf3 /simulator/opendc-experiments | |
| parent | 7493be615fd1ef0a629b32318416d3f0d2b868fb (diff) | |
Properly parse provisioned memory from Bitbrains trace
This change fixes an issue where we interpret the provisioned memory in
the Bitbrains trace as MB as opposed to the correct KB.
Diffstat (limited to 'simulator/opendc-experiments')
| -rw-r--r-- | simulator/opendc-experiments/opendc-experiments-sc20/src/main/kotlin/org/opendc/experiments/sc20/trace/Sc20TraceConverter.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simulator/opendc-experiments/opendc-experiments-sc20/src/main/kotlin/org/opendc/experiments/sc20/trace/Sc20TraceConverter.kt b/simulator/opendc-experiments/opendc-experiments-sc20/src/main/kotlin/org/opendc/experiments/sc20/trace/Sc20TraceConverter.kt index bb2a75ee..9a9598e7 100644 --- a/simulator/opendc-experiments/opendc-experiments-sc20/src/main/kotlin/org/opendc/experiments/sc20/trace/Sc20TraceConverter.kt +++ b/simulator/opendc-experiments/opendc-experiments-sc20/src/main/kotlin/org/opendc/experiments/sc20/trace/Sc20TraceConverter.kt @@ -383,8 +383,8 @@ public class BitbrainsConversion : TraceConversion("Bitbrains") { val timestamp = (values[timestampCol].trim().toLong() - 5 * 60) * 1000L cores = values[coreCol].trim().toInt() - requiredMemory = - max(requiredMemory, values[provisionedMemoryCol].trim().toDouble().toLong()) + val provisionedMemory = values[provisionedMemoryCol].trim().toDouble() // KB + requiredMemory = max(requiredMemory, (provisionedMemory / 1000).toLong()) maxCores = max(maxCores, cores) minTime = min(minTime, timestamp) val cpuUsage = values[cpuUsageCol].trim().toDouble() // MHz |
