[Libbt-devel] btget bugs...
Brought to you by:
ksmathers
From: Greg M. K. <gm...@ru...> - 2005-03-23 08:24:17
|
Sorry, I am not on the email list, so please CC my in any potential replies. 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 bittorrent 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 = 0; static int donetime = 0; - int check = (ctx->complete == 1) && peer_allcomplete( &ctx->downloads[0]->peerset); + int check = (complt == ctx->downloads[0]->fileset.npieces ) && peer_allcomplete( &ctx->downloads[0]->peerset); if (check) { if (!lastcheck) { printf("=== All peers done!\n"); @@ -604,7 +603,6 @@ } lastcheck = check; } -#endif } return 0; -- Greg M. Kurtzer http://runlevelzero.net/ http://caosity.org/ http://warewulf-cluster.org/ -- Do not look anywhere for truth, for all that is needed is to refrain from allowing concepts to arise |