Commit 44f60200 authored by Fjen Undso's avatar Fjen Undso
Browse files

VoteController: fix ALL VoteStat

parent 06506f3e
......@@ -166,7 +166,7 @@ public class VoteController extends Controller {
sUnderstandability.value = 100;
}
// overall rating: arithmetic mean of votes
if (20 < sSpeed.value || sSpeed.value > 80 || sUnderstandability.value < 20) {
if (sSpeed.value < 20 || sSpeed.value > 80 || sUnderstandability.value < 20) {
// give negative overall rating, is one value is very bad
sAll.value = 0;
} else {
......
Supports Markdown
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