mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 11:49:50 +08:00
Fix provider key response time overflow
This commit is contained in:
@@ -112,7 +112,7 @@ pub(crate) async fn build_admin_keys_grouped_by_format_payload(
|
||||
None
|
||||
};
|
||||
let avg_response_time_ms = if success_count > 0 {
|
||||
Some(f64::from(key.total_response_time_ms.unwrap_or(0)) / success_count as f64)
|
||||
Some(key.total_response_time_ms.unwrap_or(0) as f64 / success_count as f64)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user