Re: [Libbt-devel] btget bugs...
Brought to you by:
ksmathers
From: Alien <ali...@us...> - 2005-04-12 19:25:45
|
Op woensdag 23 maart 2005 09:23, schreef Greg M. Kurtzer: > Sorry, I am not on the email list, so please CC my in any potential > replies. sorry to be so slow, i figured the maintainer of the stable branch would=20 answer, but even i have difficulty reaching him, i don't know if he had put= =20 this in CVS or not. I have been granted permission to restructure current CVS HEAD. and since i= 'm=20 always looking for help, i wanted to ask for your help in changing libbt to= =20 make a real shared/static library for inclusions in other projects. thanks for the patch in any case > I am having some problems getting btget to work properly. At the moment, I > can't get it to upload to other bt peers or seed properly. It appears to > "see" the other peer, but it never sends anything. > > Also, it seems to be a bit slower then the standard python based bittorre= nt > utilities. > > It is running on a caos2 system which utilizes gcc 3.4.3, glibc 2.3.3 and > linux-2.6.11.5. I am using libbt version 1.03. > > > > I also made the following change to reneable the -q option in btget (not > sure if it is correct, but it seems to be working right): > > diff -ru libbt-1.03/src/btget.c libbt-1.03.gmk/src/btget.c > --- libbt-1.03/src/btget.c 2004-04-19 15:11:28.000000000 -0700 > +++ libbt-1.03.gmk/src/btget.c 2005-03-23 00:17:25.663976440 -0800 > @@ -586,11 +586,10 @@ > } > } > > -#if 0 > if (optquiettmo > 0) { > static int lastcheck =3D 0; > static int donetime =3D 0; > - int check =3D (ctx->complete =3D=3D 1) && peer_allcomplete( > &ctx->downloads[0]->peerset); + int check =3D (complt =3D=3D > ctx->downloads[0]->fileset.npieces ) && peer_allcomplete( > &ctx->downloads[0]->peerset); if (check) { > if (!lastcheck) { > printf("=3D=3D=3D All peers done!\n"); > @@ -604,7 +603,6 @@ > } > lastcheck =3D check; > } > -#endif > } > > return 0; |