Od którejś tam wersji (nie wiem dokładnie której) w mldonkey zostało
zakodowane ograniczenie downloadu w zależności od ustawionego uploadu.
The maximal upload rate you can tolerate on your link in kBytes/s (0 = no
limit)
max_hard_upload_rate = 10
The maximal download rate you can tolerate on your link in kBytes/s (0 = no
limit)
Maximum value depends on max_hard_upload_rate:
>= 10 -> unlimited download
< 10 > 3 -> download limited to upload * 4
< 4 -> download limited to upload * 3 *)
max_hard_download_rate = 0
Co prawda nie jest to dużo ale, że mam słaby upload to jednak wolałbym go
przyciąć mocniej. Wiem, że to "psuje" idee p2p itp., itd. co nie zmienia
faktu, że nie lubię ograniczeń;)
Zrobiłem więc łatkę która wyłącza to ograniczenie i download nie zależy od
ustawionego uploadu. Takie coś raczej pewnie nie masz szans być defaultowo
ale zastanawiałem się czy nie można by dodać chociaż bcond'a tak jak to widać
w załączonym patchu.
--
Pozdrawiam, Kamil Dziedzic
--- mldonkey-2.8.4/src/daemon/common/commonGlobals.ml 2007-02-18 01:13:08.000000000 +0100
+++ mldonkey-2.8.4/src/daemon/common/commonGlobals.ml 2007-04-22 16:22:10.000000000 +0200
@@ -216,8 +216,6 @@
let max_max_hard_download_rate =
match !!max_hard_upload_rate with
| 0 -> None
- | x when x < 4 -> Some (x * 3)
- | x when x < 10 -> Some (x * 4)
| x -> None in
match max_max_hard_download_rate with
| None -> ()
--- mldonkey.spec 2007-04-22 17:39:19.000000000 +0200
+++ mldonkey.spec 2007-04-22 17:38:01.000000000 +0200
@@ -16,6 +16,7 @@
%bcond_without bittorrent # without BitTorrent support
%bcond_without filetp # without fileTP support
%bcond_without gui # with mlgui
+%bcond_with nolimit # with no depends max_hard_download_rate on max_hard_upload_rate
#
%define ocaml_ver 3.09.2
Summary: eDonkey 2000 p2p network client
@@ -34,6 +35,7 @@
Source5: %{name}-gui.desktop
Patch0: %{name}-configwin.patch
Patch1: %{name}-newgtk.patch
+%{?with_nolimit:Patch2: %{name}-nolimit.patch}
URL: http://mldonkey.sourceforge.net/Main_Page
BuildRequires: autoconf
BuildRequires: automake
@@ -180,6 +182,7 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%{?with_nolimit:%patch2 -p1}
%build
cp -f /usr/share/automake/config.sub config
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl