Skip to content

Commit

Permalink
fix(linux): 🐛 fix total calculation for network rates sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Oct 15, 2024
1 parent 48f3960 commit f51acaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/linux/net/networkRates.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (w *netStatsWorker) Sensors(_ context.Context) ([]sensor.Entity, error) {
name := link.name
stats := link.stats
totalBytesRx += stats.RXBytes
totalBytesTx += stats.RXBytes
totalBytesTx += stats.TXBytes

if _, ok := w.statsSensors[name]; ok { // Existing link/sensors, update.
for sensorType := range w.statsSensors[name] {
Expand Down

0 comments on commit f51acaa

Please sign in to comment.