updates after review

This commit is contained in:
zzz
2011-03-01 13:37:40 +00:00
parent bb8736f2cd
commit 7b29481124
6 changed files with 9 additions and 8 deletions

View File

@ -134,7 +134,7 @@ public class I2PSnarkUtil {
}
/**
* @param KBps
* @param limit KBps
*/
public void setMaxUpBW(int limit) {
_maxUpBW = limit;

View File

@ -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) {

View File

@ -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()

View File

@ -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);

View File

@ -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&amp;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"))

View File

@ -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*," +