From 78d0f3f98c7749af76a3ab76ef0522d8f76bef5f Mon Sep 17 00:00:00 2001 From: Patrick Meenan Date: Fri, 1 May 2020 12:54:12 -0400 Subject: [PATCH] More total blocking time fixes --- www/page_data.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/page_data.inc b/www/page_data.inc index 6ac75fca4a..23aed651bf 100644 --- a/www/page_data.inc +++ b/www/page_data.inc @@ -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;