Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored Dec 13, 2024
1 parent 8e756c6 commit 3f6c0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func (hm *HwMonitor) maybeSendMetrics() {
if now.Sub(hm.lastMetricSend) >= hm.sendInterval {
// Collect network metrics.
totalSent, totalReceived := hm.getNetworkMetrics()
hm.collectMetric("network_total_bytes_sent", mbpsSent)
hm.collectMetric("network_total_bytes_received", mbpsReceived)
hm.collectMetric("network_total_bytes_sent", totalSent)
hm.collectMetric("network_total_bytes_received", totalReceived)

// Collect average-based metrics.
for key, value := range hm.metricValues {
Expand Down

0 comments on commit 3f6c0a5

Please sign in to comment.