From f2995edb0158e6956f178fdaef8f619dbe978e4b Mon Sep 17 00:00:00 2001 From: Krzysztof Strehlau Date: Fri, 13 Dec 2024 14:56:31 +0100 Subject: [PATCH] Update main.go --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c726782..e9b29ef 100644 --- a/main.go +++ b/main.go @@ -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 {