fix(container-stat) : exclude cache from the Memory Usage chart to avoid misinterpret… (#2371)
parent
d6ba46ed7f
commit
719299d75b
|
@ -64,7 +64,7 @@ function ContainerViewModel(data) {
|
||||||
|
|
||||||
function ContainerStatsViewModel(data) {
|
function ContainerStatsViewModel(data) {
|
||||||
this.Date = data.read;
|
this.Date = data.read;
|
||||||
this.MemoryUsage = data.memory_stats.usage;
|
this.MemoryUsage = data.memory_stats.usage - data.memory_stats.stats.cache;
|
||||||
this.PreviousCPUTotalUsage = data.precpu_stats.cpu_usage.total_usage;
|
this.PreviousCPUTotalUsage = data.precpu_stats.cpu_usage.total_usage;
|
||||||
this.PreviousCPUSystemUsage = data.precpu_stats.system_cpu_usage;
|
this.PreviousCPUSystemUsage = data.precpu_stats.system_cpu_usage;
|
||||||
this.CurrentCPUTotalUsage = data.cpu_stats.cpu_usage.total_usage;
|
this.CurrentCPUTotalUsage = data.cpu_stats.cpu_usage.total_usage;
|
||||||
|
|
Loading…
Reference in New Issue