Skip to content

Commit

Permalink
More total blocking time fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Meenan committed May 1, 2020
1 parent fc6386b commit 78d0f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/page_data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1213,8 +1213,8 @@ function CalculateTimeToInteractive($localPaths, $startTime, $interactiveWindows
$total_blocking_time = 0;
$max_fid = 0;
foreach ($long_tasks as $task) {
$start = max($startTime, min($task[0], $endTime)) + 50; // "blocking" time excludes the first 50ms
$end = $task[1];
$start = max($task[0], $startTime) + 50; // "blocking" time excludes the first 50ms
$end = min($task[1], $endTime);
$busyTime = $end - $start;
if ($busyTime > 0) {
$total_blocking_time += $busyTime;
Expand Down

0 comments on commit 78d0f3f

Please sign in to comment.