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()