add comment

This commit is contained in:
Asim Aslam 2019-10-23 10:55:53 +01:00
parent f07a6ac29b
commit 5ac5865154

View File

@ -173,7 +173,7 @@ func (l *link) Send(m *transport.Message) error {
// rate of send in bits per nanosecond
rate := float64(bits) / float64(delta.Nanoseconds())
//
// default the rate if its zero
if l.rate == 0 {
// rate per second
l.rate = rate * 1e9