1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(container-stats): display cache in memory usage chart (#2383)

This commit is contained in:
Yassir Hannoun 2018-10-28 03:45:02 +01:00 committed by Anthony Lapenna
parent fe6ca042f3
commit 07c1e1bc3e
3 changed files with 180 additions and 134 deletions

View file

@ -65,6 +65,7 @@ function ContainerViewModel(data) {
function ContainerStatsViewModel(data) {
this.Date = data.read;
this.MemoryUsage = data.memory_stats.usage - data.memory_stats.stats.cache;
this.MemoryCache = 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;