(network map[string]container.NetworkStats)
| 230 | } |
| 231 | |
| 232 | func calculateNetwork(network map[string]container.NetworkStats) (float64, float64) { |
| 233 | var rx, tx float64 |
| 234 | |
| 235 | for _, v := range network { |
| 236 | rx += float64(v.RxBytes) |
| 237 | tx += float64(v.TxBytes) |
| 238 | } |
| 239 | return rx, tx |
| 240 | } |
| 241 | |
| 242 | // calculateMemUsageUnixNoCache calculate memory usage of the container. |
| 243 | // Cache is intentionally excluded to avoid misinterpretation of the output. |
no outgoing calls
no test coverage detected
searching dependent graphs…