formatting
This commit is contained in:
@@ -78,9 +78,7 @@ public class BonusManager {
|
|||||||
if (dist < best) best = dist;
|
if (dist < best) best = dist;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert distance to similarity percentage
|
int score = (int)(100.0 * (1.0 - (best / (double) qlen))); // fancy manier om t naar een % match om te zetten
|
||||||
int score = (int)(100.0 * (1.0 - (best / (double) qlen)));
|
|
||||||
|
|
||||||
return Math.max(0, Math.min(100, score));
|
return Math.max(0, Math.min(100, score));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user