Update a comment about ignoring 0 values in addition to None

This commit is contained in:
Anand Taralika 2024-05-12 08:53:04 -07:00 committed by GitHub
parent 1dcf7eb06d
commit 9016e29d20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,7 +382,7 @@ class SlackAlerting(CustomLogger):
for value in latency_values
]
# Get the indices of top 5 values with the highest numerical values (ignoring None values)
# Get the indices of top 5 values with the highest numerical values (ignoring None and 0 values)
top_5_slowest = sorted(
range(len(replaced_slowest_values)),
key=lambda i: replaced_slowest_values[i],