Skip to content

Commit

Permalink
Bug fixed: wrong lap time formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Mar 2, 2024
1 parent 94245b9 commit 157a25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def on_receive(self, service: Service, msg: bytes) -> None:
uim.rd().comm = start_server(create_server(cfg.comm_port, CommCallback()), True)

def format_lap_time(t: int) -> str:
return f"{int((t := t * .001) / 60)} MIN {t % 60} SEC"
return f"{int(t := t * .001) // 60} MIN {t % 60} SEC"

class CustomListener(EventListener):
def on_push(self, e: DataPushedEvent) -> None:
Expand Down

0 comments on commit 157a25e

Please sign in to comment.