Changeset 5d71fde5 for installer/java


Ignore:
Timestamp:
Apr 16, 2004 3:09:48 AM (16 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1c145cb
Parents:
eec29f5
git-author:
jrandom <jrandom> (04/16/04 03:09:48)
git-committer:
zzz <zzz@…> (04/16/04 03:09:48)
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/java/src/FetchSeeds.java

    reec29f5 r5d71fde5  
    8585            fetchSeeds(new File(args[0]), args[1]);
    8686            return;
     87        case 3:
     88            while (true) {
     89                fetchSeeds(new File(args[0]), args[1]);
     90                try { Thread.sleep(Integer.parseInt(args[2])*1000); } catch (Throwable t) {}
     91            }
    8792        default:
    8893            System.out.println("Usage: FetchSeeds <outDir>");
    8994            System.out.println("    or FetchSeeds <outDir> <seedURL>");
     95            System.out.println("    or FetchSeeds <outDir> <seedURL> <secondsBetweenFetch>");
    9096            System.out.println("The default seedURL is http://i2p.dnsalias.net/i2pdb/");
    9197            return;
Note: See TracChangeset for help on using the changeset viewer.