We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaeb98 commit 0671991Copy full SHA for 0671991
pkg/rtpfb/ccfb_receiver.go
@@ -44,7 +44,7 @@ func convertMetricBlock(
44
// the RTS field, then an ATO value of 0x1FFF MUST be reported for
45
// the packet. In that case, we set a zero time.Time value.
46
if mb.ArrivalTimeOffset != 0x1FFF {
47
- delta := time.Duration((float64(mb.ArrivalTimeOffset) / 1024.0) * float64(time.Second))
+ delta := time.Duration(mb.ArrivalTimeOffset) * time.Second / 1024
48
arrival = reference.Add(-delta)
49
if arrival.After(latestArrival) {
50
latestArrival = arrival
0 commit comments