Skip to content

Commit

Permalink
Merge branch 'master' of github.com:WPO-Foundation/wptagent
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed Sep 26, 2018
2 parents dc74523 + 113a711 commit 219d96d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,12 @@ def adjust_timings(self, requests):
self.start_offset = earliest
for request in requests:
for entry in timestamps:
if entry in request and request[entry] >= 0:
if entry in request and request[entry] >= earliest:
request[entry] -= earliest
if 'chunks' in request:
for chunk in request['chunks']:
if 'ts' in chunk and chunk['ts'] >= earliest:
chunk['ts'] -= earliest

def wait_for_processing(self, task):
"""Wait for any background processing threads to finish"""
Expand Down

0 comments on commit 219d96d

Please sign in to comment.