mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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)
|
this.chartLabels.push(currentLabel)
|
||||||
|
|
||||||
if (this.resourceIsVirtualMachine) {
|
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
|
element.memoryusedkbs = element.memorykbs - element.memoryintfreekbs
|
||||||
memFreeLinePercent.data.push({ timestamp: currentLabel, stat: this.calculateMemoryPercentage(false, element.memorykbs, element.memoryintfreekbs) })
|
memFreeLinePercent.data.push({ timestamp: currentLabel, stat: this.calculateMemoryPercentage(false, element.memorykbs, element.memoryintfreekbs) })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user