add comment
This commit is contained in:
parent
f07a6ac29b
commit
5ac5865154
@ -173,7 +173,7 @@ func (l *link) Send(m *transport.Message) error {
|
|||||||
// rate of send in bits per nanosecond
|
// rate of send in bits per nanosecond
|
||||||
rate := float64(bits) / float64(delta.Nanoseconds())
|
rate := float64(bits) / float64(delta.Nanoseconds())
|
||||||
|
|
||||||
//
|
// default the rate if its zero
|
||||||
if l.rate == 0 {
|
if l.rate == 0 {
|
||||||
// rate per second
|
// rate per second
|
||||||
l.rate = rate * 1e9
|
l.rate = rate * 1e9
|
||||||
|
Loading…
Reference in New Issue
Block a user