summaryrefslogtreecommitdiffstats
path: root/src/borg/helpers/time.py
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2024-04-04 12:45:28 +0200
committerThomas Waldmann <tw@waldmann-edv.de>2024-04-04 12:45:28 +0200
commit54a85bf56dc71bdcf13d14e8dca06d6b944c6bb3 (patch)
treec350dca37cea6ba0eca86ef1382b1948f9f5e61f /src/borg/helpers/time.py
parent4d2eb0cb1b361daf076fbdf7ed13d7bcb67ca342 (diff)
format_timedelta: use 3 decimal digits (ms)
maybe this fixes the frequently failing test. also, giving ms makes more sense than 10ms granularity.
Diffstat (limited to 'src/borg/helpers/time.py')
-rw-r--r--src/borg/helpers/time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/borg/helpers/time.py b/src/borg/helpers/time.py
index 0cfa7be6a..5fe148796 100644
--- a/src/borg/helpers/time.py
+++ b/src/borg/helpers/time.py
@@ -100,7 +100,7 @@ def format_timedelta(td):
s = ts % 60
m = int(ts / 60) % 60
h = int(ts / 3600) % 24
- txt = "%.2f seconds" % s
+ txt = "%.3f seconds" % s
if m:
txt = "%d minutes %s" % (m, txt)
if h: