From 8d2344435b6e64c9ce4de8a049c6fa9e8a1ebcb4 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 9 Feb 2022 17:02:43 -0500 Subject: [PATCH] Use 100-based accuracy --- youmubot-osu/src/discord/oppai_cache.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youmubot-osu/src/discord/oppai_cache.rs b/youmubot-osu/src/discord/oppai_cache.rs index 0a0208c..693f5ce 100644 --- a/youmubot-osu/src/discord/oppai_cache.rs +++ b/youmubot-osu/src/discord/oppai_cache.rs @@ -30,7 +30,8 @@ impl Into for Accuracy { match self { Accuracy::ByValue(v, _) => v, Accuracy::ByCount(n300, n100, n50, nmiss) => { - ((6 * n300 + 2 * n100 + n50) as f64) / ((6 * (n300 + n100 + n50 + nmiss)) as f64) + 100.0 * ((6 * n300 + 2 * n100 + n50) as f64) + / ((6 * (n300 + n100 + n50 + nmiss)) as f64) } } }