mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Display correct maxBitrate in statistics.
This commit is contained in:
parent
60ba4aa727
commit
0ef5d10744
1 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ func (c *webClient) GetStats() *stats.Client {
|
||||||
tid := layer.tid
|
tid := layer.tid
|
||||||
maxTid := layer.maxTid
|
maxTid := layer.maxTid
|
||||||
rate, _ := t.rate.Estimate()
|
rate, _ := t.rate.Estimate()
|
||||||
|
maxRate, _, _ := t.GetMaxBitrate()
|
||||||
rtt := rtptime.ToDuration(t.getRTT(),
|
rtt := rtptime.ToDuration(t.getRTT(),
|
||||||
rtptime.JiffiesPerSec)
|
rtptime.JiffiesPerSec)
|
||||||
loss, jitter := t.stats.Get(jiffies)
|
loss, jitter := t.stats.Get(jiffies)
|
||||||
|
@ -67,7 +68,7 @@ func (c *webClient) GetStats() *stats.Client {
|
||||||
Sid: &sid,
|
Sid: &sid,
|
||||||
MaxSid: &maxSid,
|
MaxSid: &maxSid,
|
||||||
Bitrate: uint64(rate) * 8,
|
Bitrate: uint64(rate) * 8,
|
||||||
MaxBitrate: t.maxBitrate.Get(jiffies),
|
MaxBitrate: maxRate,
|
||||||
Loss: float64(loss) / 256.0,
|
Loss: float64(loss) / 256.0,
|
||||||
Rtt: stats.Duration(rtt),
|
Rtt: stats.Duration(rtt),
|
||||||
Jitter: stats.Duration(j),
|
Jitter: stats.Duration(j),
|
||||||
|
|
Loading…
Reference in a new issue