Changeset 00acac4 for apps


Ignore:
Timestamp:
May 26, 2018 8:59:09 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f320746
Parents:
e67c750
Message:

i2psnark: Hide "0 Bps" if no peers (ticket #2152)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    re67c750 r00acac4  
    18121812        out.write("</td>\n\t");
    18131813        out.write("<td align=\"right\" class=\"snarkTorrentRateDown\">");
    1814         if (isRunning && needed > 0)
     1814        if (isRunning && needed > 0 && (downBps > 0 || curPeers > 0))
    18151815            out.write(formatSizeDec(downBps) + "ps");
    18161816        out.write("</td>\n\t");
    18171817        out.write("<td align=\"right\" class=\"snarkTorrentRateUp\">");
    1818         if (isRunning && isValid)
     1818        if (isRunning && isValid && (upBps > 0 || curPeers > 0))
    18191819            out.write(formatSizeDec(upBps) + "ps");
    18201820        out.write("</td>\n\t");
Note: See TracChangeset for help on using the changeset viewer.