fix a compile error

This commit is contained in:
christophe-duc 2026-01-07 20:30:56 -04:00
parent 48c9212c0d
commit 264b4efc52

View file

@ -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