Skip to content

Commit 78d0f3f

Browse files
author
Patrick Meenan
committed
More total blocking time fixes
1 parent fc6386b commit 78d0f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/page_data.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ function CalculateTimeToInteractive($localPaths, $startTime, $interactiveWindows
12131213
$total_blocking_time = 0;
12141214
$max_fid = 0;
12151215
foreach ($long_tasks as $task) {
1216-
$start = max($startTime, min($task[0], $endTime)) + 50; // "blocking" time excludes the first 50ms
1217-
$end = $task[1];
1216+
$start = max($task[0], $startTime) + 50; // "blocking" time excludes the first 50ms
1217+
$end = min($task[1], $endTime);
12181218
$busyTime = $end - $start;
12191219
if ($busyTime > 0) {
12201220
$total_blocking_time += $busyTime;

0 commit comments

Comments
 (0)