Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the storage pressure check, we multiply available space by 100. The max value of an int64_t is 2^63, so an overflow could happen on a disk whose size is at least 2^63 / 100 ~= 92 PB. This change refactors the storage pressure check by representing the storage pressure threshold (2%) as 0.02 rather than 2, which allows us to remove the multiplication by 100 on the other side of the equation. Bug: 1127237 Change-Id: If3d5a89ee2cd8ea8f0beabf1a38ae71a14d3ff52 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429365 Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Jarryd Goodman <jarrydg@chromium.org> Cr-Commit-Position: refs/heads/master@{#810769}
- Loading branch information