Files
traefik-lazyload/pkg/service/util.go
2023-05-30 21:57:01 -04:00

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
}