fix(container-stat) : exclude cache from the Memory Usage chart to avoid misinterpret… (#2371)

pull/2385/head
Yassir Hannoun 2018-10-17 23:00:45 +02:00 committed by Anthony Lapenna
parent d6ba46ed7f
commit 719299d75b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function ContainerViewModel(data) {
function ContainerStatsViewModel(data) {
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.PreviousCPUSystemUsage = data.precpu_stats.system_cpu_usage;
this.CurrentCPUTotalUsage = data.cpu_stats.cpu_usage.total_usage;