commit | 13f004e2f8a3df7b97d95f2067b4a8ec9d48338a | [log] [tgz] |
---|---|---|
author | Pavan Kumar M <quic_rpavan@quicinc.com> | Mon May 24 00:28:41 2021 +0530 |
committer | Pavan Kumar M <quic_rpavan@quicinc.com> | Wed May 26 08:09:31 2021 +0000 |
tree | dcfdf26a32ef8c554499f3356408c25f7e451588 | |
parent | 5c206377317fbfa018f0c875e0bb4c9c59d8b941 [diff] |
Gracefully handle integer overflows. Avoid recording negative data by doing integer-based math as much as possible, but switch to double-based math if we detect that we'd end up causing an overflow. Test : - Builds, Boots - High data throughput scenarios - NetworkStatsHistoryTest, NetworkStatsCollectionTest, NetworkStatsTest Bug: 119527458 Change-Id: I355fc9bd127da83c1dc70ab3b1261346d4fa5de0