mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
omit cache from memory usage stat
This commit is contained in:
parent
954aaeb06b
commit
55a356bbec
@ -89,7 +89,7 @@ func (c *Docker) ReadCPU(stats *api.Stats) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Docker) ReadMem(stats *api.Stats) {
|
func (c *Docker) ReadMem(stats *api.Stats) {
|
||||||
c.MemUsage = int64(stats.MemoryStats.Usage)
|
c.MemUsage = int64(stats.MemoryStats.Usage - stats.MemoryStats.Stats.Cache)
|
||||||
c.MemLimit = int64(stats.MemoryStats.Limit)
|
c.MemLimit = int64(stats.MemoryStats.Limit)
|
||||||
c.MemPercent = percent(float64(c.MemUsage), float64(c.MemLimit))
|
c.MemPercent = percent(float64(c.MemUsage), float64(c.MemLimit))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user