From cd0d9f069a1b691270e33e0030d2776cf17372d9 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Sun, 12 Nov 2023 08:03:25 +0800 Subject: [PATCH] add error stats --- loxinet/port.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loxinet/port.go b/loxinet/port.go index feec22544..cbb41e3fb 100644 --- a/loxinet/port.go +++ b/loxinet/port.go @@ -611,8 +611,10 @@ func (P *PortsH) PortsToGet() ([]cmn.PortDump, error) { if opCode == 0 { ports.Stats.RxBytes = ifis.Ifs[tk.RxBytes] ports.Stats.RxPackets = ifis.Ifs[tk.RxPkts] + ports.Stats.RxError = ifis.Ifs[tk.RxErrors] ports.Stats.TxBytes = ifis.Ifs[tk.TxBytes] ports.Stats.TxPackets = ifis.Ifs[tk.TxPkts] + ports.Stats.TxError = ifis.Ifs[tk.TxErrors] } routed := false