Searched refs:totalPowerMah (Results 1 – 1 of 1) sorted by relevance
235 public double calculateBatteryPercent(double powerUsageMah, double totalPowerMah, in calculateBatteryPercent() argument237 if (totalPowerMah == 0) { in calculateBatteryPercent()241 return (powerUsageMah / totalPowerMah) * dischargeAmount; in calculateBatteryPercent()