Searched refs:avgVoltageMV (Results 1 – 1 of 1) sorted by relevance
206 final int avgVoltageMV = (oldVoltageMV + voltageMV + 1) / 2; in updateAndGetDelta() local208 updateAndGetDeltaForTypeOther(consumer, newAttributions, avgVoltageMV); in updateAndGetDelta()227 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDelta()297 @Nullable EnergyConsumerAttribution[] newAttributions, int avgVoltageMV) { in updateAndGetDeltaForTypeOther() argument334 if (deltaUJ < 0 || avgVoltageMV <= 0) { in updateAndGetDeltaForTypeOther()336 + ") but old energy (" + oldEnergyUJ + "). Average voltage (" + avgVoltageMV in updateAndGetDeltaForTypeOther()341 final long deltaChargeUC = calculateChargeConsumedUC(deltaUJ, avgVoltageMV); in updateAndGetDeltaForTypeOther()418 private long calculateChargeConsumedUC(long deltaEnergyUJ, int avgVoltageMV) { in calculateChargeConsumedUC() argument421 return (deltaEnergyUJ * MILLIVOLTS_PER_VOLT + (avgVoltageMV / 2)) / avgVoltageMV; in calculateChargeConsumedUC()