Skip to content

Commit

Permalink
Add h/m/s denotions to make elapsed more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
kedNalatacId committed Jun 19, 2024
1 parent 14005a9 commit 0fc3bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def log_tty(self, name: str, placed: int, final: bool) -> None:
logging.StreamHandler.terminator = '\r'

pct: float = round(100 * (placed / self.total_items), 2)
elapsed: str = time.strftime("%H:%M:%S", time.gmtime(round(self.cur_time - self.start_time)))
elapsed: str = time.strftime("%Hh:%Mm:%Ss", time.gmtime(round(self.cur_time - self.start_time)))
logging.info(f"Current fill step ({name}) at {placed}/{self.total_items} ({pct}%) items placed [{elapsed} elapsed].")

# restore the terminator
Expand Down

0 comments on commit 0fc3bc1

Please sign in to comment.