commit | 0653b60fa68177b9371246fbcab882d85d4fcd34 | [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 | 934043d88c7f11fb903fded384513703e604e6ef | |
parent | a46e5911eecc0d9e0213604abceebccd421de6ba [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