From bf792a190d81fbc6962b7d19cd93a2764124a739 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 30 Oct 2017 04:31:23 -0500 Subject: [PATCH] round duration number --- archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive.py b/archive.py index 2a3faf54..89a0935c 100755 --- a/archive.py +++ b/archive.py @@ -44,8 +44,8 @@ def update_archive(export_path, links, resume=None, append=True): # print timing information & summary end_ts = datetime.now().timestamp() - seconds = round(end_ts - start_ts, 1) - duration = '{} min'.format(seconds / 60) if seconds > 60 else '{} sec'.format(seconds) + seconds = round(end_ts - start_ts, 2) + duration = '{} min'.format(round(seconds / 60, 2)) if seconds > 60 else '{} sec'.format(seconds) print('{}[√] [{}] Archive update complete ({}){}'.format( ANSI['green'], datetime.now().strftime('%Y-%m-%d %H:%M:%S'),