google_battery: align data for UI and sysfs path
Bug: 366147290
Change-Id: Iaaaadc6cbd4a96cdd1ac489530c417039fa3a9eb
Signed-off-by: Jenny Ho <[email protected]>
(cherry picked from commit 6771d0196ae68c2b2d10157627da40497bbc1fe3)
diff --git a/google_battery.c b/google_battery.c
index 57b134a..45e4d62 100644
--- a/google_battery.c
+++ b/google_battery.c
@@ -7352,6 +7352,7 @@
const int use_algo = batt_bhi_map_algo(i, health_data);
cap_index = bhi_calc_cap_index(use_algo, batt_drv);
+ cap_index = bhi_cap_index_bound(use_algo, cap_index);
imp_index = bhi_calc_imp_index(use_algo, health_data);
sd_index = bhi_calc_sd_index(use_algo, health_data);