commit | fc5b6cb326757eea4c530db44ca0d2e764cb343d | [log] [tgz] |
---|---|---|
author | Pavan Kumar M <quic_rpavan@quicinc.com> | Tue Jul 21 14:18:23 2020 +0530 |
committer | Pavan Kumar M <quic_rpavan@quicinc.com> | Tue Jul 28 11:36:49 2020 +0530 |
tree | bc8fea45d6cc733e9d0a20d7ec02f1713ab5a4a2 | |
parent | 28ced6a6ca41b9da337b69d737ca8c999c4cae2a [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: I55d4aa649bea3ae201ad513074ff2b71cb918dad