mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
fix a compile error
This commit is contained in:
parent
48c9212c0d
commit
264b4efc52
1 changed files with 5 additions and 3 deletions
|
|
@ -412,9 +412,11 @@ func (r *LibpodRuntime) aggregatePodContainerStats(ctx context.Context, pod *lib
|
|||
totalMemLimit += stats.MemLimit
|
||||
totalPIDs += stats.PIDs
|
||||
|
||||
// Aggregate network stats
|
||||
totalNetIn += stats.NetInput
|
||||
totalNetOut += stats.NetOutput
|
||||
// Aggregate network stats from all interfaces
|
||||
for _, netStats := range stats.Network {
|
||||
totalNetIn += netStats.RxBytes
|
||||
totalNetOut += netStats.TxBytes
|
||||
}
|
||||
|
||||
// Aggregate block I/O stats
|
||||
totalBlockIn += stats.BlockInput
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue