Skip to content

Commit 222f62c

Browse files
author
Bob Strahan
committed
fix: round lambda metering GB-seconds to 1 decimal place
1 parent 3dfaab2 commit 222f62c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/idp_common_pkg/idp_common/utils/lambda_metering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def calculate_lambda_metering(
6363
memory_gb = memory_mb / 1024.0
6464
gb_seconds_raw = memory_gb * duration_seconds
6565

66-
# Round GB-seconds to 2 decimal places for cleaner output
67-
gb_seconds = round(gb_seconds_raw, 2)
66+
# Round GB-seconds to 1 decimal places for cleaner output
67+
gb_seconds = round(gb_seconds_raw, 1)
6868

6969
# Log the calculated metrics for visibility
7070
logger.info(f"Lambda metering for {context_name}: "

0 commit comments

Comments
 (0)