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 c5adcc6 commit f2995ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (hm *HwMonitor) maybeSendMetrics() {
// Send network metrics.
totalBytesSent, totalBytesReceived := hm.getNetworkMetrics()
hm.client.Publish(hm.prefix + "network_total_bytes_sent", 0, false, strconv.FormatUint(totalBytesSent, 10))
hm.client.Publish(hm.prefix + "network_total_bytes_received", 0, false, strconv.FormatUint(totalBytesSent, 10))
hm.client.Publish(hm.prefix + "network_total_bytes_received", 0, false, strconv.FormatUint(totalBytesReceived, 10))

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

0 comments on commit f2995ed

Please sign in to comment.