Add start/end time to AnalyticsStream. (#2618)
* Add start/end time to AnalyticsStream. * fix test
This commit is contained in:
@@ -505,7 +505,7 @@ func (q *qualityScorer) isPaused() bool {
|
||||
}
|
||||
|
||||
func (q *qualityScorer) getPacketLossWeight(stat *windowStat) float64 {
|
||||
if stat == nil || stat.duration == 0 {
|
||||
if stat == nil || stat.duration <= 0 {
|
||||
return q.params.PacketLossWeight
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user