From 5d71fde51bb0f6287fd5394f4fb171233a4d8779 Mon Sep 17 00:00:00 2001 From: jrandom Date: Fri, 16 Apr 2004 03:09:48 +0000 Subject: [PATCH] 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) --- installer/java/src/FetchSeeds.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/java/src/FetchSeeds.java b/installer/java/src/FetchSeeds.java index b716dabb2..010b6b691 100644 --- a/installer/java/src/FetchSeeds.java +++ b/installer/java/src/FetchSeeds.java @@ -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 "); System.out.println(" or FetchSeeds "); + System.out.println(" or FetchSeeds "); System.out.println("The default seedURL is http://i2p.dnsalias.net/i2pdb/"); return; }