mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 01:47:47 +08:00
Fix provider key response time overflow
This commit is contained in:
@@ -1238,7 +1238,7 @@ fn build_pool_catalog_key_context(
|
||||
.filter(|count| *count > 0)
|
||||
.zip(key.total_response_time_ms)
|
||||
.map(|(success_count, total_response_time_ms)| {
|
||||
f64::from(total_response_time_ms) / f64::from(success_count)
|
||||
total_response_time_ms as f64 / f64::from(success_count)
|
||||
})
|
||||
.filter(|value| value.is_finite() && *value >= 0.0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user