Fix stability UI (#1000)

* Update mod.rs

* fmt
This commit is contained in:
Dongjia "toka" Zhang 2023-01-18 19:00:50 +09:00 committed by GitHub
parent 15c1c0fb5e
commit 1446692f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -465,7 +465,10 @@ where
state,
Event::UpdateUserStats {
name: "stability".to_string(),
value: UserStats::Ratio(unstable_entries as u64, map_len as u64),
value: UserStats::Ratio(
(map_len - unstable_entries) as u64,
map_len as u64,
),
phantom: PhantomData,
},
)?;