Merge pull request #579 from unpoller/issue-575-influx-fix-2

#575 fixes last two data type casting issues for influxdb
This commit is contained in:
Cody Lee 2023-07-18 17:01:05 -05:00 committed by GitHub
commit 8cf461b0f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(),