r174 - in /debtorrent/trunk/DebTorrent: download_bt1.py launchmanycore.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Mon Jul 16 15:58:20 UTC 2007
Author: camrdale-guest
Date: Mon Jul 16 15:58:20 2007
New Revision: 174
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=174
Log:
Remove the display_interval option.
Modified:
debtorrent/trunk/DebTorrent/download_bt1.py
debtorrent/trunk/DebTorrent/launchmanycore.py
Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=174&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Mon Jul 16 15:58:20 2007
@@ -227,9 +227,6 @@
'(only for dedicated seeds)'),
('dedicated_seed_id', '',
'code to send to tracker identifying as a dedicated seed'),
-
- ('display_interval', .5,
- 'time between updates of displayed information'),
]
argslistheader = 'Arguments are:\n\n'
@@ -1171,24 +1168,6 @@
if self.info.has_key('files'):
self.statistics.set_dirstats(self.files, self.piece_lengths)
- def autoStats(self, displayfunc = None):
- """Start the statistics automatic displayer for the user.
-
- @type displayfunc: C{method}
- @param displayfunc: the method to call to print the current stats
-
- """
-
- if not displayfunc:
- displayfunc = self.statusfunc
-
- self._init_stats()
- DownloaderFeedback(self.choker, self.httpdownloader, self.rawserver.add_task,
- self.upmeasure.get_rate, self.downmeasure.get_rate,
- self.ratemeasure, self.storagewrapper.get_stats,
- self.datalength, self.finflag, self.statistics,
- displayfunc, self.config['display_interval'])
-
def startStats(self):
"""Start a statistics gatherer.
Modified: debtorrent/trunk/DebTorrent/launchmanycore.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/launchmanycore.py?rev=174&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/launchmanycore.py (original)
+++ debtorrent/trunk/DebTorrent/launchmanycore.py Mon Jul 16 15:58:20 2007
@@ -292,8 +292,6 @@
@ivar file_cache: the files found in the parsing of the torrent directory
@type blocked_files: C{dictionary}
@ivar blocked_files: the torrents in the torrent directory that will not be run
- @type stats_period: C{int}
- @ivar stats_period: the number of seconds between printing the stats for the user
@type torrent_list: C{list} of C{string}
@ivar torrent_list: the list of running torrents' info hashes
@type downloads: C{dictionary}
@@ -336,7 +334,6 @@
self.torrent_cache = {}
self.file_cache = {}
self.blocked_files = {}
- self.stats_period = config['display_interval']
self.torrent_list = []
self.downloads = {}
More information about the Debtorrent-commits
mailing list