simon987 há 6 anos atrás
pai
commit
1c7dafb378
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      archivebox/logs.py

+ 1 - 1
archivebox/logs.py

@@ -155,7 +155,7 @@ def log_archiving_paused(num_links, idx, timestamp):
 def log_archiving_finished(num_links):
 def log_archiving_finished(num_links):
     end_ts = datetime.now()
     end_ts = datetime.now()
     _LAST_RUN_STATS['end_ts'] = end_ts
     _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:
     if seconds > 60:
         duration = '{0:.2f} min'.format(seconds / 60, 2)
         duration = '{0:.2f} min'.format(seconds / 60, 2)
     else:
     else: