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

Unified Diff: tools/perf/profile_creators/history_profile_extender.py

Issue 939283002: Telemetry: Fix bug in HistoryProfileExtender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/profile_creators/history_profile_extender.py
diff --git a/tools/perf/profile_creators/history_profile_extender.py b/tools/perf/profile_creators/history_profile_extender.py
index 6e1c133f21a8ab30ecce969b5cea391ea729a5d1..94cd63687268ad270d33494793c07bb7704d91cc 100644
--- a/tools/perf/profile_creators/history_profile_extender.py
+++ b/tools/perf/profile_creators/history_profile_extender.py
@@ -84,7 +84,7 @@ class HistoryProfileExtender(
size = stat_info.st_size
max_size_threshold = 0.95
- bytes_in_megabyte = 2**10
+ bytes_in_megabyte = 2**20
max_size = (bytes_in_megabyte *
HistoryProfileExtender._HISTORY_DB_MAX_SIZE_IN_MB * max_size_threshold)
return size > max_size
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698