Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Camel authored and Camel committed Apr 20, 2023
1 parent 3b01841 commit c6d4202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jitter/jitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (b *Jitter) Put(p *Packet) {
b.list.Set(p.Timestamp, p)

delta := p.Timestamp - b.targetTime()
if delta > 0 {
if delta >= 0 {
b.normal.Set(p.Timestamp, deltaWithSampleCnt{delta: delta, sampleCnt: p.SampleCnt})
} else if delta < 0 && delta > -b.maxLatency { // 늦게 온 것이면, 단 너무 늦으면 버림
b.late.Set(p.Timestamp, deltaWithSampleCnt{delta: -delta, sampleCnt: p.SampleCnt}) // 늦은 시간을 기록
Expand Down

0 comments on commit c6d4202

Please sign in to comment.