Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-agenta authored Nov 26, 2024
1 parent d39b491 commit ac62dfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def parse_legacy_analytics(
for bucket_dto in bucket_dtos:
data_point = LegacyDataPoint(
timestamp=bucket_dto.timestamp,
success_count=(bucket_dto.total.count - bucket_dto.error.count) or 0,
success_count=(bucket_dto.total.count or 0) - (bucket_dto.error.count or 0),
failure_count=bucket_dto.error.count or 0,
cost=bucket_dto.total.cost or 0.0,
latency=bucket_dto.total.duration or 0.0,
Expand Down

0 comments on commit ac62dfc

Please sign in to comment.