Skip to content

Commit

Permalink
dailystats: fix that the consumption matches the boardcomputer by inc…
Browse files Browse the repository at this point in the history
…luding the regeneration
  • Loading branch information
ZuinigeRijder committed Jul 28, 2024
1 parent 0d2c0c5 commit c7e56eb
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 222 deletions.
1 change: 1 addition & 0 deletions dailystats.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ def print_dailystats(
batterycare: int,
) -> None:
"""print stats"""
consumed = consumed + regenerated # car efficiency is including regenerated
regenerated_perc = safe_divide(regenerated * 100, consumed)
engine_perc = safe_divide(engine * 100, consumed)
climate_perc = safe_divide(climate * 100, consumed)
Expand Down
Loading

0 comments on commit c7e56eb

Please sign in to comment.