cargo-fmt

This commit is contained in:
Vecna 2024-04-26 13:11:32 -04:00
parent 273aaab38d
commit b2eb244757
1 changed files with 2 additions and 4 deletions

View File

@ -284,8 +284,7 @@ impl Analyzer for NormalAnalyzer {
negative_reports_today: u32,
) -> bool {
negative_reports_today > self.max_threshold
|| f64::from(negative_reports_today)
> self.scaling_factor * f64::from(bridge_ips_today)
|| f64::from(negative_reports_today) > self.scaling_factor * f64::from(bridge_ips_today)
}
/// Evaluate invite-only bridge based on last 30 days
@ -313,8 +312,7 @@ impl Analyzer for NormalAnalyzer {
bridge_ips_today as f64,
negative_reports_today as f64,
]));
if pdf < alpha
{
if pdf < alpha {
(negative_reports_today as f64) > negative_reports_mean + negative_reports_sd
|| (bridge_ips_today as f64) < bridge_ips_mean - bridge_ips_sd
} else {