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:
parent
fe6ca042f3
commit
07c1e1bc3e
3 changed files with 180 additions and 134 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue