cargo-fmt
This commit is contained in:
parent
273aaab38d
commit
b2eb244757
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue