(limit float64, usedNoCache float64)
| 264 | } |
| 265 | |
| 266 | func calculateMemPercentUnixNoCache(limit float64, usedNoCache float64) float64 { |
| 267 | // MemoryStats.Limit will never be 0 unless the container is not running and we haven't |
| 268 | // got any data from cgroup |
| 269 | if limit != 0 { |
| 270 | return usedNoCache / limit * 100.0 |
| 271 | } |
| 272 | return 0 |
| 273 | } |
no outgoing calls
searching dependent graphs…