Return time since last PLI properly (#507)

This commit is contained in:
Raja Subramanian
2022-03-12 13:15:01 +05:30
committed by GitHub
parent 4e24df4200
commit b0e470cd59

View File

@@ -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