Send side BWE - fixes (#3244)

* WIP

* no worker

* fixes

* use congested packet groups

* oldest group

* markers

* WIP

* WIP

* WIP

* WIP

* WIP

* clean up

* fmt

* consolidate

* store last packet only for bwe extension cases
This commit is contained in:
Raja Subramanian
2024-12-11 21:31:26 +05:30
committed by GitHub
parent d0f7eaeadb
commit 4b16017d09
14 changed files with 403 additions and 349 deletions
+6 -1
View File
@@ -353,7 +353,12 @@ func (p ProbeClusterResult) Duration() time.Duration {
}
func (p ProbeClusterResult) Bitrate() float64 {
return float64(p.Bytes()*8) / p.Duration().Seconds()
duration := p.Duration().Seconds()
if duration != 0 {
return float64(p.Bytes()*8) / duration
}
return 0
}
func (p ProbeClusterResult) MarshalLogObject(e zapcore.ObjectEncoder) error {