discourage people from setting their dirfetchpostperiod more often

than once per minute


svn:r2369
This commit is contained in:
Roger Dingledine 2004-09-23 19:23:32 +00:00
parent 8385fdb590
commit 02e3e3327c

View File

@ -841,8 +841,9 @@ int getconfig(int argc, char **argv, or_options_t *options) {
result = -1; result = -1;
} }
if(options->DirFetchPostPeriod < 1) { #define MIN_DIRFETCHPOSTPERIOD 60
log(LOG_WARN,"DirFetchPostPeriod option must be positive."); if(options->DirFetchPostPeriod < MIN_DIRFETCHPOSTPERIOD) {
log(LOG_WARN,"DirFetchPostPeriod option must be at least %d.", MIN_DIRFETCHPOSTPERIOD);
result = -1; result = -1;
} }
if(options->DirFetchPostPeriod > MIN_ONION_KEY_LIFETIME/2) { if(options->DirFetchPostPeriod > MIN_ONION_KEY_LIFETIME/2) {