summaryrefslogtreecommitdiffstats
path: root/tools/perf/profile_creators/history_profile_extender.py
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-02-20 10:20:53 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-20 18:21:17 +0000
commitca068183ed1ef472599cbd1acb69d954d7a3b635 (patch)
treee40aa2ae1566a96485bc78e75085d5a0895e39a2 /tools/perf/profile_creators/history_profile_extender.py
parenta484b301ffe721cdce66a5c91115d09dd3c7ac86 (diff)
downloadchromium_src-ca068183ed1ef472599cbd1acb69d954d7a3b635.zip
chromium_src-ca068183ed1ef472599cbd1acb69d954d7a3b635.tar.gz
chromium_src-ca068183ed1ef472599cbd1acb69d954d7a3b635.tar.bz2
Telemetry: Fix bug in HistoryProfileExtender.
There was a typo that caused the class to confuse megabytes and kilobytes. BUG=442546 Review URL: https://codereview.chromium.org/939283002 Cr-Commit-Position: refs/heads/master@{#317350}
Diffstat (limited to 'tools/perf/profile_creators/history_profile_extender.py')
-rw-r--r--tools/perf/profile_creators/history_profile_extender.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/profile_creators/history_profile_extender.py b/tools/perf/profile_creators/history_profile_extender.py
index 6e1c133..94cd636 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