Commit 5f350300 authored by tec's avatar tec

Make odd commite sizes not get rounded down

parent 00b64a4d
......@@ -306,10 +306,10 @@ fn update_motion(
.expect("No previous status")
.clone()
.value;
if for_strength > (config::VOTE_POOL_SIZE / 2) as f32 {
if for_strength > (config::VOTE_POOL_SIZE as f32 / 2.0) {
e.colour(serenity::utils::Colour::TEAL);
update_status(e, "Passed", last_status_full, &topic);
} else if against_strength + abstain_strength > (config::VOTE_POOL_SIZE / 2) as f32 {
} else if against_strength + abstain_strength > (config::VOTE_POOL_SIZE as f32 / 2.0) {
e.colour(serenity::utils::Colour::RED);
update_status(e, "Failed", last_status_full, &topic);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment