report elapsed

This commit is contained in:
Christian Zangl 2023-12-22 20:25:14 +01:00
parent 605538823f
commit bf62b62727
No known key found for this signature in database
GPG Key ID: 6D468AC36E2A4B3D
2 changed files with 10 additions and 4 deletions

View File

@ -183,9 +183,15 @@ class Main:
) )
if self.progress == Progress.Fancy and self.total > 0: if self.progress == Progress.Fancy and self.total > 0:
elapsed = (datetime.now() - self.fps.start).total_seconds() elapsed = datetime.now() - self.fps.start
print(f"- {(self.fps.total+self.fps.current)/elapsed:.2f} files/second") elapsed_s = elapsed.total_seconds()
print(f"- {(self.bps.total+self.bps.current)/MB/elapsed:.2f} MB/second") 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 context.update:
if self.num_idx_upd: if self.num_idx_upd:

View File

@ -1,6 +1,6 @@
[project] [project]
name = "chkbit" name = "chkbit"
version = "3.0.0" version = "3.0.1"
description = "chkbit checks the data integrity of your files" description = "chkbit checks the data integrity of your files"
authors = [ authors = [
{name = "Christian Zangl", email = "laktak@cdak.net"}, {name = "Christian Zangl", email = "laktak@cdak.net"},