From 3f6c0a5584c44c468b56cbbf8417f152f60ff9a8 Mon Sep 17 00:00:00 2001 From: Krzysztof Strehlau Date: Fri, 13 Dec 2024 14:32:41 +0100 Subject: [PATCH] Update main.go --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3f529af..9f51aad 100644 --- a/main.go +++ b/main.go @@ -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 {