Skip to content

Commit c7e56eb

Browse files
committed
dailystats: fix that the consumption matches the boardcomputer by including the regeneration
1 parent 0d2c0c5 commit c7e56eb

File tree

4 files changed

+223
-222
lines changed

4 files changed

+223
-222
lines changed

dailystats.py

+1
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def print_dailystats(
530530
batterycare: int,
531531
) -> None:
532532
"""print stats"""
533+
consumed = consumed + regenerated # car efficiency is including regenerated
533534
regenerated_perc = safe_divide(regenerated * 100, consumed)
534535
engine_perc = safe_divide(engine * 100, consumed)
535536
climate_perc = safe_divide(climate * 100, consumed)

0 commit comments

Comments
 (0)