Skip to content

Commit 4f45e35

Browse files
winterhazeldhslove
authored andcommitted
UI workaround for the inconsistent formatting of listVirtualMachinesUsageHistory (apache#10824)
1 parent 4d045db commit 4f45e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/view/StatsTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ export default {
522522
this.chartLabels.push(currentLabel)
523523
524524
if (this.resourceIsVirtualMachine) {
525-
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.split('%')[0] })
525+
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.replace(',', '.').split('%')[0] })
526526
527527
element.memoryusedkbs = element.memorykbs - element.memoryintfreekbs
528528
memFreeLinePercent.data.push({ timestamp: currentLabel, stat: this.calculateMemoryPercentage(false, element.memorykbs, element.memoryintfreekbs) })

0 commit comments

Comments
 (0)