ba708a406b32866760c56d919d4742cf621e0d15 jcasper Wed Jun 18 10:27:20 2014 -0700 Fixed typo preventing the port option from working diff --git src/weblet/bottleneck/bottleneck.c src/weblet/bottleneck/bottleneck.c index 82f2483..3891122 100644 --- src/weblet/bottleneck/bottleneck.c +++ src/weblet/bottleneck/bottleneck.c @@ -35,31 +35,31 @@ " -host=XXXXX - Use specific host. Default %s.\n" " -subnet=WWW.XXX.YYY.ZZZ Restrict access to subnet (example 192.168.255.255)\n" " -penalty=N - Penalty (in milliseconds) for each access, default %d\n" " -recovery=N - Amount to recover (in milliseconds) for each second\n" " between accesses. Default %d\n" "Note penalty and recovery if moved from defaults should balance\n" "At the default settings an equilibrium will be achieved when queries\n" "are spaced 15 seconds apart. The maximum delay should thus be 15 seconds\n" "It will take 25 minutes of idleness for the maximum delay to decay back to\n" "zero.\n" , port, host, penalty, recovery ); } static struct optionSpec options[] = { - {"post", OPTION_INT}, + {"port", OPTION_INT}, {"host", OPTION_STRING}, {"subnet", OPTION_STRING}, {"penalty", OPTION_INT}, {"recovery", OPTION_INT}, {NULL, 0}, }; struct tracker /* Keep track of IP addresses. */ { struct tracker *next; /* Next in list. */ char *name; /* Name (IP address). Not allocated here. */ time_t lastAccess; /* Time of last access. */ int curDelay; /* Current delay in 1000ths of second. */ int maxDelay; /* Maximum delay so far. */