dont use == on doubles

This commit is contained in:
zzz
2013-07-10 18:42:13 +00:00
parent 732eddd1b9
commit 9a1e1a92ca

View File

@ -1542,7 +1542,7 @@ public class I2PSnarkServlet extends BasicServlet {
float pct;
if (isValid) {
pct = (float) (100.0 * peer.completed() / meta.getPieces());
if (pct == 100.0)
if (pct >= 100.0)
out.write(_("Seed"));
else {
String ps = String.valueOf(pct);