mirror of
https://github.com/zix99/traefik-lazyload.git
synced 2025-12-21 13:23:04 +01:00
14 lines
255 B
Go
14 lines
255 B
Go
package service
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
)
|
|
|
|
func sumNetworkBytes(networks map[string]types.NetworkStats) (recv int64, send int64) {
|
|
for _, ns := range networks {
|
|
recv += int64(ns.RxBytes)
|
|
send += int64(ns.TxBytes)
|
|
}
|
|
return
|
|
}
|