diff options
author | Shumao Hou <shumao1129@gmail.com> | 2022-11-09 12:43:14 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-09-17 12:54:04 +0800 |
commit | 00a548d4470b5efb7b7752313642a2da7a8348da (patch) | |
tree | 7782857303c48570aa71969696d551090341af0a /libs/androidfw/CursorWindow.cpp | |
parent | 1b9bc2d19e98592205ec437c98e89d1cfe0d5a2c (diff) |
BatteryStatsImpl: Avoid dividing by 0.0 in updateWifiState.
If the variable opVolt is 0.0 in the method updateWifiState,
the local variable monitoredRailChargeConsumedMaMs may be computed
to a large value. The logic here should be the same as the method
noteModemControlllerActivity. The variable opVolt being 0.0 should
be avoided as a divisor.
Bug: N/A
Test: Manual
Change-Id: I95ce75b960bace4c37acea89062cb21aab21aa30
Diffstat (limited to 'libs/androidfw/CursorWindow.cpp')
0 files changed, 0 insertions, 0 deletions