| 52 | } |
| 53 | |
| 54 | type LinkResource struct { |
| 55 | RecvBps float64 `json:"recv_bps"` |
| 56 | SendBps float64 `json:"send_bps"` |
| 57 | RecvPps float64 `json:"recv_pps"` |
| 58 | SendPps float64 `json:"send_pps"` |
| 59 | RecvErrPps float64 `json:"recv_err_pps"` |
| 60 | SendErrPps float64 `json:"send_err_pps"` |
| 61 | RecvDropPps float64 `json:"recv_drop_pps"` |
| 62 | SendDropPps float64 `json:"send_drop_pps"` |
| 63 | } |
| 64 | |
| 65 | func AddLinkResourceRaw(from, to *LinkResourceRaw) { |
| 66 | to.RecvByte += from.RecvByte |
nothing calls this directly
no outgoing calls
no test coverage detected