forked from I2P_Developers/i2p.i2p
updates after review
This commit is contained in:
@ -134,7 +134,7 @@ public class I2PSnarkUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param KBps
|
||||
* @param limit KBps
|
||||
*/
|
||||
public void setMaxUpBW(int limit) {
|
||||
_maxUpBW = limit;
|
||||
|
@ -57,7 +57,7 @@ class MagnetState {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param call this for a new magnet when you have the size
|
||||
* Call this for a new magnet when you have the size
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public void initialize(int size) {
|
||||
@ -77,7 +77,7 @@ class MagnetState {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Call this for a new magnet when the download is complete.
|
||||
* Call this for a new magnet when the download is complete.
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public void setMetaInfo(MetaInfo meta) {
|
||||
|
@ -644,7 +644,7 @@ public class SnarkManager implements Snark.CompleteListener {
|
||||
* @param name hex or b32 name from the magnet link
|
||||
* @param ih 20 byte info hash
|
||||
* @param trackerURL may be null
|
||||
* @param udpateStatus should we add this magnet to the config file,
|
||||
* @param updateStatus should we add this magnet to the config file,
|
||||
* to save it across restarts, in case we don't get
|
||||
* the metadata before shutdown?
|
||||
* @throws RuntimeException via Snark.fatal()
|
||||
|
@ -54,7 +54,7 @@ public interface DHT {
|
||||
* Non-blocking.
|
||||
*
|
||||
* @param ih the Info Hash (torrent)
|
||||
* @param peer the peer's Hash
|
||||
* @param peerHash the peer's Hash
|
||||
*/
|
||||
public void announce(byte[] ih, byte[] peerHash);
|
||||
|
||||
|
@ -353,7 +353,7 @@ public class I2PSnarkServlet extends Default {
|
||||
boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||
ua.startsWith("ELinks") || ua.startsWith("Dillo"));
|
||||
|
||||
boolean noThinsp = isDegraded || ua.startsWith("Opera");
|
||||
boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera"));
|
||||
if (_manager.util().connected()) {
|
||||
if (isDegraded)
|
||||
out.write("<a href=\"/i2psnark/?action=StopAll&nonce=" + _nonce + "\"><img title=\"");
|
||||
@ -1883,7 +1883,8 @@ public class I2PSnarkServlet extends Default {
|
||||
mime = "";
|
||||
if (mime.equals("text/html"))
|
||||
icon = "html";
|
||||
else if (mime.equals("text/plain") || plc.endsWith(".nfo"))
|
||||
else if (mime.equals("text/plain") || plc.endsWith(".nfo") ||
|
||||
mime.equals("application/rtf"))
|
||||
icon = "page";
|
||||
else if (mime.equals("application/java-archive") || plc.endsWith(".war") ||
|
||||
plc.endsWith(".deb"))
|
||||
|
@ -54,7 +54,7 @@ public class StatManager {
|
||||
"jobQueue.jobLag,netDb.successTime,peer.failedLookupRate,router.fastPeers," +
|
||||
"prng.bufferFillTime,prng.bufferWaitTime,router.memoryUsed," +
|
||||
"transport.receiveMessageSize,transport.sendMessageSize,transport.sendProcessingTime," +
|
||||
"tunnel.acceptLoad,tunnel.buildRequestTime,tunnel.rejectOverloaded,tunnel.rejectTimeout" +
|
||||
"tunnel.acceptLoad,tunnel.buildRequestTime,tunnel.rejectOverloaded,tunnel.rejectTimeout," +
|
||||
"tunnel.buildClientExpire,tunnel.buildClientReject,tunnel.buildClientSuccess," +
|
||||
"tunnel.buildExploratoryExpire,tunnel.buildExploratoryReject,tunnel.buildExploratorySuccess," +
|
||||
"tunnel.buildRatio.*,tunnel.corruptMessage,tunnel.dropLoad*," +
|
||||
|
Reference in New Issue
Block a user