1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

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

This commit is contained in:
Yassir Hannoun 2018-10-17 23:00:45 +02:00 committed by Anthony Lapenna
parent d6ba46ed7f
commit 719299d75b

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;