[BitTorrent] 2. patch for track.py

Denis Ahrens denis at berlin.ccc.de
Thu Nov 18 17:10:10 EST 2004


Hi

This small one fixes the number of files info in the tracker infopage 
when it is
used without --allowed_files. Until now it showed always 0.

Denis

Index: track.py
===================================================================
RCS file: /cvsroot/bittorrent/BitTorrent/BitTorrent/track.py,v
retrieving revision 1.96
diff -u -r1.96 track.py
--- track.py    4 Jun 2004 22:09:02 -0000       1.96
+++ track.py    18 Nov 2004 22:06:23 -0000
@@ -247,9 +247,9 @@
                  tc = tc + c
                  d = len(l) - c
                  td = td + d
+                nf = nf + 1
                  if self.allowed != None and self.show_names:
                      if self.allowed.has_key(name):
-                        nf = nf + 1
                          sz = self.allowed[name]['length']  # size
                          ts = ts + sz
                          szt = sz * n   # Transferred for this torrent




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the BitTorrent mailing list