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

Unified Diff: tools/resource_prefetch_predictor/prefetch_predictor_tool.py

Issue 2891583002: Fuchsia port of base/time, with some refactoring of POSIX time modules. (Closed)
Patch Set: REBASE before commit. Created 3 years, 7 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
« no previous file with comments | « content/browser/tracing/tracing_controller_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/resource_prefetch_predictor/prefetch_predictor_tool.py
diff --git a/tools/resource_prefetch_predictor/prefetch_predictor_tool.py b/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
index 436e0216e787ee7b8ebbb98a80b605b239b75777..71d8310febb2b5c1dd2374f9088ce4e4d1a6fa2c 100755
--- a/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
+++ b/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
@@ -84,8 +84,7 @@ def DumpOriginDatabaseRow(domain, primary_key, proto):
from resource_prefetch_predictor_pb2 import OriginData
entry = OriginData()
entry.ParseFromString(proto)
- # For the offset, see kWindowsEpochDeltaMicroseconds in
- # base/time/time_posix.cc.
+ # For the offset, see kTimeTToMicrosecondsOffset in base/time/time.h.
last_visit_timestamp = int(entry.last_visit_time / 1e6 - 11644473600)
formatted_last_visit_time = datetime.datetime.utcfromtimestamp(
last_visit_timestamp).strftime('%Y-%m-%d %H:%M:%S')
« no previous file with comments | « content/browser/tracing/tracing_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698