measure docker network stats per second

This commit is contained in:
Henry Dollman
2024-08-05 18:58:00 -04:00
parent c6b9f1ab77
commit a73a01fe37
2 changed files with 21 additions and 13 deletions

View File

@@ -167,5 +167,9 @@ type NetIoStats struct {
type PrevContainerStats struct {
Cpu [2]uint64
Net [2]uint64
Net struct {
Sent uint64
Recv uint64
Time time.Time
}
}