mirror of
https://github.com/livekit/livekit.git
synced 2026-04-05 16:45:55 +00:00
Return time since last PLI properly (#507)
This commit is contained in:
@@ -107,7 +107,7 @@ func (r *RTPStats) TimeSinceLastPliAggregate() int64 {
|
||||
|
||||
now := time.Now()
|
||||
if aw := r.getAggregateWindow(now); aw != nil {
|
||||
aw.TimeSinceLastPli(now)
|
||||
return aw.TimeSinceLastPli(now)
|
||||
}
|
||||
|
||||
return 0
|
||||
@@ -119,7 +119,7 @@ func (r *RTPStats) TimeSinceLastPliActive() int64 {
|
||||
|
||||
now := time.Now()
|
||||
if aw := r.getActiveWindow(now); aw != nil {
|
||||
aw.TimeSinceLastPli(now)
|
||||
return aw.TimeSinceLastPli(now)
|
||||
}
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user