MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / LinkResource

Struct LinkResource

daemon/utils/monitor.go:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54type 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
65func AddLinkResourceRaw(from, to *LinkResourceRaw) {
66 to.RecvByte += from.RecvByte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected