mirror of https://github.com/apache/cloudstack.git
UI workaround for the inconsistent formatting of listVirtualMachinesUsageHistory (#10824)
This commit is contained in:
parent
696bc50f3b
commit
751a0ad559
|
|
@ -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) })
|
||||
|
|
|
|||
Loading…
Reference in New Issue