From 679acce20a2b0bdeb9c20a87512ca4921e37a8a5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 22 Jul 2019 21:32:55 +0200 Subject: [PATCH] Fix GC logging --- activity_gc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activity_gc.py b/activity_gc.py index 318b818..637cd4c 100644 --- a/activity_gc.py +++ b/activity_gc.py @@ -126,7 +126,7 @@ def perform() -> None: # noqa: C901 logger.exception(f"failed to process {data!r}") after_gc_create = perf_counter() - time_to_gc_create = start - after_gc_create + time_to_gc_create = after_gc_create - start logger.info( f"{time_to_gc_create:.2f} seconds to analyze {create_count} Create, {create_deleted} deleted" ) @@ -176,7 +176,7 @@ def perform() -> None: # noqa: C901 logger.exception(f"failed to process {data!r}") after_gc_announce = perf_counter() - time_to_gc_announce = after_gc_create - after_gc_announce + time_to_gc_announce = after_gc_announce - after_gc_create logger.info( f"{time_to_gc_announce:.2f} seconds to analyze {announce_count} Announce, {announce_deleted} deleted" )