fixes sitedpi strings on influx and prom

This commit is contained in:
Cody Lee
2023-01-23 17:32:14 -06:00
parent 80792b8ca6
commit 2b185e88c7
2 changed files with 8 additions and 8 deletions

View File

@@ -74,10 +74,10 @@ func (u *InfluxUnifi) batchSiteDPI(r report, v any) {
"source": s.SourceName,
},
Fields: map[string]any{
"tx_packets": dpi.TxPackets,
"rx_packets": dpi.RxPackets,
"tx_bytes": dpi.TxBytes,
"rx_bytes": dpi.RxBytes,
"tx_packets": dpi.TxPackets.Val,
"rx_packets": dpi.RxPackets.Val,
"tx_bytes": dpi.TxBytes.Val,
"rx_bytes": dpi.RxBytes.Val,
},
})
}