From c5e409adffeb24f306cd6cdc4321950055f93425 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Tue, 18 Jul 2023 16:56:50 -0500 Subject: [PATCH] per https://github.com/unpoller/unpoller/issues/575\#issuecomment-1641041603 fixes the other two data points that need to be re-cast --- pkg/influxunifi/clients.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/influxunifi/clients.go b/pkg/influxunifi/clients.go index 668b942e..32b956f2 100644 --- a/pkg/influxunifi/clients.go +++ b/pkg/influxunifi/clients.go @@ -57,11 +57,11 @@ func (u *InfluxUnifi) batchClient(r report, s *unifi.Client) { // nolint: funlen "tx_bytes": s.TxBytes.Int64(), "tx_bytes_r": s.TxBytesR.Int64(), "tx_packets": s.TxPackets.Int64(), - "tx_retries": s.TxRetries, + "tx_retries": s.TxRetries.Int64(), "tx_power": s.TxPower.Int64(), "tx_rate": s.TxRate.Int64(), "uptime": s.Uptime.Int64(), - "wifi_tx_attempts": s.WifiTxAttempts, + "wifi_tx_attempts": s.WifiTxAttempts.Int64(), "wired-rx_bytes": s.WiredRxBytes.Int64(), "wired-rx_bytes-r": s.WiredRxBytesR.Int64(), "wired-rx_packets": s.WiredRxPackets.Int64(),