commit | 1c5ecec86dad7b764e81c8425f65bdf819f3dd0d | [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 | 9625c2df3570f05cb47a0c6b66bbcbf48c083ef8 [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