Skip to content

Commit

Permalink
Fix page metrics evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Sep 7, 2023
1 parent ebee344 commit d921327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ window.GET_DISPLAY_MEDIA_CROP = "${crop}";
const lastMetrics = this.pagesMetrics.get(pageIndex)
if (lastMetrics?.Timestamp) {
const elapsedTime = metrics.Timestamp - lastMetrics.Timestamp
if (elapsedTime > 1000) {
if (elapsedTime > 10) {
const durationDiff =
metricsTotalDuration(metrics) -
metricsTotalDuration(lastMetrics)
Expand Down

0 comments on commit d921327

Please sign in to comment.