From 751a0ad55983986340f975562b80dbecb54f27b7 Mon Sep 17 00:00:00 2001 From: Fabricio Duarte Date: Fri, 9 May 2025 05:01:53 -0300 Subject: [PATCH] UI workaround for the inconsistent formatting of listVirtualMachinesUsageHistory (#10824) --- ui/src/components/view/StatsTab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/view/StatsTab.vue b/ui/src/components/view/StatsTab.vue index 27595223899..b99d716804c 100644 --- a/ui/src/components/view/StatsTab.vue +++ b/ui/src/components/view/StatsTab.vue @@ -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) })