diff options
author | Pavan Kumar M <rpavan@codeaurora.org> | 2019-01-16 10:55:13 +0530 |
---|---|---|
committer | Pavan Kumar M <rpavan@codeaurora.org> | 2019-01-16 12:34:20 +0530 |
commit | 26ea73a0b9a5a7c1eabddbb4f12b83066d3fd951 (patch) | |
tree | ea984367706dec04dc4fd622d3aa884abaa49419 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | ca06a6dd80eee89dd4c520b974c5c8568785a534 (diff) |
Avoid recording negative data
If Android XLAT interface is up, xlatAdjustments are done
while calculating stats to account respectively for
double-counted traffic and IPv4/IPv6 header size difference.
NetworkStatsEntry with 464xlat traffic entries to be deducted
on the base interface will have negative entries and the
entries will be unnecessarily assigned LONG_MAX value while
combining/adding the values with base traffic entries. This
results in the netstats_error.
This change avoids assigning LONG_MAX value to entries unless
there is a overflow and thereby avoiding the netstats_errors.
Test :
- Builds, Boots
- Stats related tests
- Tethering with Android XLAT up
Change-Id: Iebb655a96def290d714c16184a47ec007b4da4b8
CRs-Fixed: 2370692
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions