Skip to content

Commit 6f3f8e8

Browse files
committed
fix(metrics): use correct nntppool field name for provider bytes
1 parent 952f3b0 commit 6f3f8e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/pool/metrics_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (mt *MetricsTracker) getSnapshot(now time.Time, stats nntppool.ClientStats)
165165
for _, ps := range stats.Providers {
166166
totalErrors += ps.Errors
167167
providerErrors[ps.Name] = ps.Errors
168-
providerBytes[ps.Name] = ps.BytesDownloaded
168+
providerBytes[ps.Name] = ps.BytesConsumed
169169
}
170170

171171
// Use live counter for speed and totals

0 commit comments

Comments
 (0)