This repository was archived by the owner on Jun 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
browserup-proxy-core/src/main/java/com/browserup/bup Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 6565import com .browserup .bup .proxy .dns .DelegatingHostResolver ;
6666import com .browserup .bup .util .BrowserUpHttpUtil ;
6767import com .browserup .bup .util .BrowserUpProxyUtil ;
68- import org .littleshoot .proxy .SslEngineSource ;
6968import org .littleshoot .proxy .extras .SelfSignedSslEngineSource ;
7069import org .apache .commons .lang3 .StringUtils ;
7170import org .littleshoot .proxy .ChainedProxy ;
@@ -678,6 +677,14 @@ public void setWriteBandwidthLimit(long bytesPerSecond) {
678677 }
679678 }
680679
680+ private void updateDefaultPageTimings () {
681+ getDefaultPage ().ifPresent (page -> {
682+ if (page .getStartedDateTime () != null ) {
683+ page .getPageTimings ().setOnLoad (Math .toIntExact (new Date ().getTime () - page .getStartedDateTime ().getTime ()));
684+ }
685+ });
686+ }
687+
681688 @ Override
682689 public long getWriteBandwidthLimit () {
683690 return writeBandwidthLimitBps ;
@@ -698,6 +705,8 @@ public void endPage() {
698705 .getPageTimings ()
699706 .setOnLoad (Math .toIntExact (new Date ().getTime () - previousPage .getStartedDateTime ().getTime ()));
700707 }
708+
709+ updateDefaultPageTimings ();
701710 }
702711
703712 @ Override
You can’t perform that action at this time.
0 commit comments