Commit ca068183 authored by erikchen's avatar erikchen Committed by Commit bot

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}
parent a484b301
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment