Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tools/android/loading/request_dependencies_lens.py

Issue 1619713002: Upgrade analyze.py and related scripts to new world order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/android/loading/request_dependencies_lens.py
diff --git a/tools/android/loading/request_dependencies_lens.py b/tools/android/loading/request_dependencies_lens.py
index 9aacd81938685980abf0f809a2fe1d9b127f3441..2ce1d5a3ffb9107934af175785cfc35946a98aa0 100644
--- a/tools/android/loading/request_dependencies_lens.py
+++ b/tools/android/loading/request_dependencies_lens.py
@@ -126,7 +126,8 @@ class RequestDependencyLens(object):
"""
candidates = self._requests_by_url.get(url, [])
candidates = [r for r in candidates if (
- r.timestamp + max(0, r.timing.receive_headers_end) <= before_timestamp)]
+ r.timestamp + max(
+ 0, r.timing.receive_headers_end / 1000) <= before_timestamp)]
candidates.sort(key=operator.attrgetter('timestamp'))
return candidates

Powered by Google App Engine
This is Rietveld 408576698