From fed496435a4a25321a8edfdb4dbfa95bd0ec2e4e Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 15 Oct 2024 12:59:08 -0700 Subject: [PATCH] Update emission/storage/decorations/stats_queries.py Co-authored-by: Jack Greenlee --- emission/storage/decorations/stats_queries.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/emission/storage/decorations/stats_queries.py b/emission/storage/decorations/stats_queries.py index c030ad569..9c3621d59 100644 --- a/emission/storage/decorations/stats_queries.py +++ b/emission/storage/decorations/stats_queries.py @@ -74,9 +74,7 @@ def store_dashboard_time(code_fragment_name: str, timer: ec_timer.Timer): def store_dashboard_error(code_fragment_name: str, timer: ec_timer.Timer): - # Extract the elapsed time in seconds and convert to milliseconds - elapsed_seconds = timer.elapsed # Access the elapsed time in seconds - elapsed_ms = elapsed_seconds * 1000 # Convert to milliseconds + elapsed_ms = timer.elapsed * 1000 # Get the current timestamp in seconds since epoch timestamp = time.time()