From bf62b6272745285c1f54fad18c3db010c73452eb Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Fri, 22 Dec 2023 20:25:14 +0100 Subject: [PATCH] report elapsed --- cli/main.py | 12 +++++++++--- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cli/main.py b/cli/main.py index da10300..3ccd0e8 100644 --- a/cli/main.py +++ b/cli/main.py @@ -183,9 +183,15 @@ class Main: ) if self.progress == Progress.Fancy and self.total > 0: - elapsed = (datetime.now() - self.fps.start).total_seconds() - print(f"- {(self.fps.total+self.fps.current)/elapsed:.2f} files/second") - print(f"- {(self.bps.total+self.bps.current)/MB/elapsed:.2f} MB/second") + elapsed = datetime.now() - self.fps.start + elapsed_s = elapsed.total_seconds() + print(f"- {str(elapsed).split('.')[0]} elapsed") + print( + f"- {(self.fps.total+self.fps.current)/elapsed_s:.2f} files/second" + ) + print( + f"- {(self.bps.total+self.bps.current)/MB/elapsed_s:.2f} MB/second" + ) if context.update: if self.num_idx_upd: diff --git a/pyproject.toml b/pyproject.toml index f580665..2d7d679 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "chkbit" -version = "3.0.0" +version = "3.0.1" description = "chkbit checks the data integrity of your files" authors = [ {name = "Christian Zangl", email = "laktak@cdak.net"},