Skip to content

Commit

Permalink
fix stats ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed May 13, 2024
1 parent b3153c4 commit 2e77044
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/e2e-network-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Video end-to-end network delay stats.
* @type MeasuredStats
*/
const videoEndToEndNetworkDelayStats = new MeasuredStats(30)
const videoEndToEndNetworkDelayStats = new MeasuredStats({ ttl: 30 })

window.collectVideoEndToEndNetworkDelayStats = () => {
return videoEndToEndNetworkDelayStats.mean()
Expand Down
2 changes: 1 addition & 1 deletion scripts/e2e-video-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @type MeasuredStats
*/
const videoEndToEndDelayStats = (window.videoEndToEndDelayStats =
new MeasuredStats(30))
new MeasuredStats({ ttl: 30 }))

window.collectVideoEndToEndDelayStats = () => {
return videoEndToEndDelayStats.mean()
Expand Down
4 changes: 2 additions & 2 deletions scripts/page-stats.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* global MeasuredStats */

// Page performance
const httpBitrateStats = new MeasuredStats(60)
const httpLatencyStats = new MeasuredStats(60)
const httpBitrateStats = new MeasuredStats({ ttl: 60 })
const httpLatencyStats = new MeasuredStats({ ttl: 60 })

const httpResourcesStats = {
recvBytes: 0,
Expand Down

0 comments on commit 2e77044

Please sign in to comment.