mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-21 23:22:31 +02:00
install to sbin
git-svn-id: file:///svn/unbound/trunk@1001 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+8
-3
@@ -483,7 +483,7 @@ harvest_main(struct harvest_data* data)
|
||||
int numdone = 0;
|
||||
/* register todo queries for all original queries */
|
||||
make_todo(data);
|
||||
printf("depth 0: todo %d list %d\n", 0, data->numtodo);
|
||||
printf("depth 0: done %d todo %d\n", 0, data->numtodo);
|
||||
/* pick up a todo item and process it */
|
||||
while(data->todo_list) {
|
||||
numdone++;
|
||||
@@ -492,10 +492,15 @@ harvest_main(struct harvest_data* data)
|
||||
if(!data->todo_list) data->todo_last = NULL;
|
||||
if(numdone%1000==0 || it->depth > data->curdepth) {
|
||||
data->curdepth = it->depth;
|
||||
printf("depth %d: todo %d list %d, %d rrs\n",
|
||||
printf("depth %d: done %d todo %d, %d rrs\n",
|
||||
it->depth, numdone, data->numtodo,
|
||||
data->num_rrs);
|
||||
}
|
||||
if(it->depth >= data->maxdepth) {
|
||||
printf("obtained %d rrs to a max of %d labels.\n",
|
||||
data->num_rrs, data->maxlabels);
|
||||
return;
|
||||
}
|
||||
data->numtodo--;
|
||||
process(data, it);
|
||||
}
|
||||
@@ -518,7 +523,7 @@ int main(int argc, char* argv[])
|
||||
data.ctx = ub_ctx_create();
|
||||
data.resultdir = strdup("harvested_zones");
|
||||
if(!data.resultdir) error_exit("out of memory");
|
||||
data.maxdepth = 10;
|
||||
data.maxdepth = 2;
|
||||
|
||||
/* parse the options */
|
||||
while( (c=getopt(argc, argv, "hf:v")) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user