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:
parent
d6ba46ed7f
commit
719299d75b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue