Skip to content

Commit

Permalink
getCompressedUserTiming() .from check should gather any UT that start…
Browse files Browse the repository at this point in the history
…ed OR ended after the time
  • Loading branch information
nicjansma committed Apr 4, 2016
1 parent 022ec5a commit 1cca483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usertiming-compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
// 'from' minimum time
if (options.from) {
entries = entries.filter(function(e) {
return e.startTime >= options.from;
return e.startTime + e.duration >= options.from;
});
}

Expand Down

0 comments on commit 1cca483

Please sign in to comment.