round duration number
This commit is contained in:
parent
5428fc4bba
commit
bf792a190d
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ def update_archive(export_path, links, resume=None, append=True):
|
||||||
|
|
||||||
# print timing information & summary
|
# print timing information & summary
|
||||||
end_ts = datetime.now().timestamp()
|
end_ts = datetime.now().timestamp()
|
||||||
seconds = round(end_ts - start_ts, 1)
|
seconds = round(end_ts - start_ts, 2)
|
||||||
duration = '{} min'.format(seconds / 60) if seconds > 60 else '{} sec'.format(seconds)
|
duration = '{} min'.format(round(seconds / 60, 2)) if seconds > 60 else '{} sec'.format(seconds)
|
||||||
print('{}[√] [{}] Archive update complete ({}){}'.format(
|
print('{}[√] [{}] Archive update complete ({}){}'.format(
|
||||||
ANSI['green'],
|
ANSI['green'],
|
||||||
datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue