Skip to content

Commit

Permalink
add error stats
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 12, 2023
1 parent 57b9af1 commit cd0d9f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loxinet/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd0d9f0

Please sign in to comment.