allow a third parameter - # seconds between fetch

this lets you periodically refetch the seeds (I'm using this to fetch the live netDb & run the netmonitor/viewer)
This commit is contained in:
jrandom
2004-04-16 03:09:48 +00:00
committed by zzz
parent eec29f5c68
commit 5d71fde51b

View File

@ -84,9 +84,15 @@ public class FetchSeeds {
case 2:
fetchSeeds(new File(args[0]), args[1]);
return;
case 3:
while (true) {
fetchSeeds(new File(args[0]), args[1]);
try { Thread.sleep(Integer.parseInt(args[2])*1000); } catch (Throwable t) {}
}
default:
System.out.println("Usage: FetchSeeds <outDir>");
System.out.println(" or FetchSeeds <outDir> <seedURL>");
System.out.println(" or FetchSeeds <outDir> <seedURL> <secondsBetweenFetch>");
System.out.println("The default seedURL is http://i2p.dnsalias.net/i2pdb/");
return;
}