summaryrefslogtreecommitdiff
path: root/libs/androidfw/CursorWindow.cpp
diff options
context:
space:
mode:
authorShumao Hou <shumao1129@gmail.com>2022-11-09 12:43:14 +0800
committeralk3pInjection <webmaster@raspii.tech>2023-09-17 12:54:04 +0800
commit00a548d4470b5efb7b7752313642a2da7a8348da (patch)
tree7782857303c48570aa71969696d551090341af0a /libs/androidfw/CursorWindow.cpp
parent1b9bc2d19e98592205ec437c98e89d1cfe0d5a2c (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