Skip to content

Commit 751a0ad

Browse files
authored
UI workaround for the inconsistent formatting of listVirtualMachinesUsageHistory (#10824)
1 parent 696bc50 commit 751a0ad

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
@@ -521,7 +521,7 @@ export default {
521521
this.chartLabels.push(currentLabel)
522522
523523
if (this.resourceIsVirtualMachine) {
524-
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.split('%')[0] })
524+
cpuLine.data.push({ timestamp: currentLabel, stat: element.cpuused.replace(',', '.').split('%')[0] })
525525
526526
element.memoryusedkbs = element.memorykbs - element.memoryintfreekbs
527527
memFreeLinePercent.data.push({ timestamp: currentLabel, stat: this.calculateMemoryPercentage(false, element.memorykbs, element.memoryintfreekbs) })

0 commit comments

Comments
 (0)