We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66f93bf commit f3345d7Copy full SHA for f3345d7
metrics.go
@@ -6,12 +6,14 @@ package noise
6
//
7
// [docs]: https://arxiv.org/pdf/1509.04417.pdf
8
type metrics struct {
9
+ bytesRecv uint64 // bytes received
10
+ bytesSent uint64 // bytes sent
11
handshakeTime uint32 // how long took the handshake to complete.
12
latency uint16 // rtt in ms
13
bandwidth uint16 // remote peer bandwidth
14
nonce uint16 // nonce ordering factor
- sent uint16 // sent messages
- recv uint16 // received messages
15
+ sent uint16 // counter sent messages
16
+ recv uint16 // counter received messages
17
}
18
19
// calculate weight
0 commit comments