cleanup; fix environment stats not reporting network TX correctly

This commit is contained in:
Dane Everitt
2021-01-06 20:47:44 -08:00
parent 963a906c30
commit 1937d0366d
4 changed files with 19 additions and 45 deletions

View File

@@ -24,8 +24,10 @@ type Stats struct {
// Disk int64 `json:"disk_bytes"`
// Current network transmit in & out for a container.
Network struct {
RxBytes uint64 `json:"rx_bytes"`
TxBytes uint64 `json:"tx_bytes"`
} `json:"network"`
Network NetworkStats `json:"network"`
}
type NetworkStats struct {
RxBytes uint64 `json:"rx_bytes"`
TxBytes uint64 `json:"tx_bytes"`
}