forked from I2P_Developers/i2p.i2p
dont use == on doubles
This commit is contained in:
@ -1542,7 +1542,7 @@ public class I2PSnarkServlet extends BasicServlet {
|
|||||||
float pct;
|
float pct;
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
pct = (float) (100.0 * peer.completed() / meta.getPieces());
|
pct = (float) (100.0 * peer.completed() / meta.getPieces());
|
||||||
if (pct == 100.0)
|
if (pct >= 100.0)
|
||||||
out.write(_("Seed"));
|
out.write(_("Seed"));
|
||||||
else {
|
else {
|
||||||
String ps = String.valueOf(pct);
|
String ps = String.valueOf(pct);
|
||||||
|
Reference in New Issue
Block a user