[Debtorrent-commits] r31 - in /debtorrent/trunk/DebTorrent:
BT1/StorageWrapper.py download_bt1.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Thu May 3 03:13:40 UTC 2007
Author: camrdale-guest
Date: Thu May 3 03:13:11 2007
New Revision: 31
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=31
Log:
Remove the allocation controls (must pre-allocate)
Modified:
debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py
debtorrent/trunk/DebTorrent/download_bt1.py
Modified: debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py?rev=31&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py Thu May 3 03:13:11 2007
@@ -89,7 +89,7 @@
self.config = config
self.unpauseflag = unpauseflag
- self.alloc_type = config.get('alloc_type','normal')
+ self.alloc_type = config.get('alloc_type','pre-allocate')
self.double_check = config.get('double_check', 0)
self.triple_check = config.get('triple_check', 0)
if self.triple_check:
@@ -424,7 +424,7 @@
def _bgalloc(self):
self.allocfunc()
if self.config.get('alloc_rate',0) < 0.1:
- self.config['alloc_rate'] = 0.1
+ self.config['alloc_rate'] = 2.0
self.backfunc( self._bgalloc,
(float(self.datalength)/float(len(self.hashes)))/(self.config['alloc_rate']*1048576) )
Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=31&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Thu May 3 03:13:11 2007
@@ -119,10 +119,11 @@
'maximum kB/s to upload at (0 = no limit, -1 = automatic)'),
('max_download_rate', 0,
'maximum kB/s to download at (0 = no limit)'),
- ('alloc_type', 'pre-allocate',
- 'allocation type (may be normal, background, pre-allocate or sparse)'),
- ('alloc_rate', 2.0,
- 'rate (in MiB/s) to allocate space at using background allocation'),
+# Remove allocation controls for now (must pre-allocate)
+# ('alloc_type', 'pre-allocate',
+# 'allocation type (may be normal, background, pre-allocate or sparse)'),
+# ('alloc_rate', 2.0,
+# 'rate (in MiB/s) to allocate space at using background allocation'),
('buffer_reads', 1,
'whether to buffer disk reads'),
('write_buffer_size', 4,
More information about the Debtorrent-commits
mailing list