From 1c7dafb3781a2dbb5c37845a815fc6d63db127e0 Mon Sep 17 00:00:00 2001 From: simon987 Date: Thu, 21 Mar 2019 20:10:45 -0400 Subject: [PATCH] Fix for #188 --- archivebox/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/logs.py b/archivebox/logs.py index b636ab1e..646352fe 100644 --- a/archivebox/logs.py +++ b/archivebox/logs.py @@ -155,7 +155,7 @@ def log_archiving_paused(num_links, idx, timestamp): def log_archiving_finished(num_links): end_ts = datetime.now() _LAST_RUN_STATS['end_ts'] = end_ts - seconds = end_ts - _LAST_RUN_STATS['start_ts'].timestamp() + seconds = end_ts.timestamp() - _LAST_RUN_STATS['start_ts'].timestamp() if seconds > 60: duration = '{0:.2f} min'.format(seconds / 60, 2) else: