fn success_rate()

in src/admin.rs [381:389]


    fn success_rate(&self, other: &Self, total: &'static str, error: &'static str) -> f64 {
        let total = self.rate(other, total);
        let error = self.rate(other, error);
        if total > 0.0 {
            100.0 - (100.0 * error / total)
        } else {
            100.0
        }
    }