google_battery: align data for UI and sysfs path
Bug: 366147290
Change-Id: Iaaaadc6cbd4a96cdd1ac489530c417039fa3a9eb
Signed-off-by: Jenny Ho <[email protected]>
diff --git a/google_battery.c b/google_battery.c
index 17bdc0d..383a14c 100644
--- a/google_battery.c
+++ b/google_battery.c
@@ -7727,6 +7727,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);