2006-01-01 jrandom

* Disable multifile torrent creation in I2PSnark's web UI for the moment
      (though it can still seed and participate in multifile swarms)
    * Enable a new speed calculation for profiling peers, using their peak
      1 minute average tunnel throughput as their speed.
This commit is contained in:
jrandom
2006-01-01 17:23:26 +00:00
committed by zzz
parent 76f89ac93c
commit 23723b56ca
13 changed files with 114 additions and 24 deletions

View File

@ -240,7 +240,7 @@ public class I2PSnarkServlet extends HttpServlet {
if ( (announceURLOther != null) && (announceURLOther.trim().length() > "http://.i2p/announce".length()) )
announceURL = announceURLOther;
if (baseFile.exists()) {
if (baseFile.exists() && baseFile.isFile()) {
try {
Storage s = new Storage(baseFile, announceURL, null);
s.create();
@ -258,6 +258,8 @@ public class I2PSnarkServlet extends HttpServlet {
} catch (IOException ioe) {
_manager.addMessage("Error creating a torrent for " + baseFile.getAbsolutePath() + ": " + ioe.getMessage());
}
} else if (baseFile.exists()) {
_manager.addMessage("I2PSnark doesn't yet support creating multifile torrents");
} else {
_manager.addMessage("Cannot create a torrent for the nonexistant data: " + baseFile.getAbsolutePath());
}