UI workaround for the inconsistent formatting of listVirtualMachinesUsageHistory (#10824)

This commit is contained in:
Fabricio Duarte 2025-05-09 05:01:53 -03:00 committed by GitHub
parent 696bc50f3b
commit 751a0ad559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,7 +521,7 @@ export default {
this.chartLabels.push(currentLabel)
if (this.resourceIsVirtualMachine) {
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.split('%')[0] })
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.replace(',', '.').split('%')[0] })
element.memoryusedkbs = element.memorykbs - element.memoryintfreekbs
memFreeLinePercent.data.push({ timestamp: currentLabel, stat: this.calculateMemoryPercentage(false, element.memorykbs, element.memoryintfreekbs) })