mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-25 07:20:59 +02:00
round duration number
This commit is contained in:
@@ -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'),
|
||||||
|
Reference in New Issue
Block a user