Commit 0ef5d107 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display correct maxBitrate in statistics.

parent 60ba4aa7
......@@ -56,6 +56,7 @@ func (c *webClient) GetStats() *stats.Client {
tid := layer.tid
maxTid := layer.maxTid
rate, _ := t.rate.Estimate()
maxRate, _, _ := t.GetMaxBitrate()
rtt := rtptime.ToDuration(t.getRTT(),
rtptime.JiffiesPerSec)
loss, jitter := t.stats.Get(jiffies)
......@@ -67,7 +68,7 @@ func (c *webClient) GetStats() *stats.Client {
Sid: &sid,
MaxSid: &maxSid,
Bitrate: uint64(rate) * 8,
MaxBitrate: t.maxBitrate.Get(jiffies),
MaxBitrate: maxRate,
Loss: float64(loss) / 256.0,
Rtt: stats.Duration(rtt),
Jitter: stats.Duration(j),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment