X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=net-p2p%2Famule%2Ffiles%2Famule-2.2.6-remove-download-limit.patch;h=0a28aa1e218745304982f633d66bc6e4843b0816;hb=cfbc55852e978a669aff441df1894dc638aaf70a;hp=a9a3bedf4119729e4ef5364fa42ce0f3ad65747e;hpb=135a3f66d6f02a520a2a139e84fa94f1f9a714d4;p=overlay.git diff --git a/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch b/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch index a9a3bed..0a28aa1 100644 --- a/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch +++ b/net-p2p/amule/files/amule-2.2.6-remove-download-limit.patch @@ -1,7 +1,7 @@ diff -Nur aMule-2.2.6-orig/src/Preferences.cpp aMule-2.2.6/src/Preferences.cpp --- aMule-2.2.6-orig/src/Preferences.cpp 2009-03-28 20:29:59.000000000 +0100 -+++ aMule-2.2.6/src/Preferences.cpp 2010-03-08 16:07:31.000000000 +0100 -@@ -1329,25 +1329,7 @@ ++++ aMule-2.2.6/src/Preferences.cpp 2010-03-08 18:46:08.000000000 +0100 +@@ -1329,25 +1329,6 @@ // Kry note: of course, any leecher mod will be banned asap. void CPreferences::CheckUlDlRatio() { @@ -24,7 +24,35 @@ diff -Nur aMule-2.2.6-orig/src/Preferences.cpp aMule-2.2.6/src/Preferences.cpp - if ( ( s_maxupload * 4 < s_maxdownload ) || ( s_maxdownload == 0 ) ) - s_maxdownload = s_maxupload * 4; - } -+ s_maxdownload = UNLIMITED; + } + + +diff -Nur aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp aMule-2.2.6/src/PrefsUnifiedDlg.cpp +--- aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp 2009-03-28 20:29:59.000000000 +0100 ++++ aMule-2.2.6/src/PrefsUnifiedDlg.cpp 2010-03-08 18:22:52.000000000 +0100 +@@ -1087,25 +1087,6 @@ + + void PrefsUnifiedDlg::OnRateLimitChanged( wxSpinEvent& event ) + { +- // Here we do immediate sainity checking of the up/down ratio, +- // so that the user can see if his choice is illegal +- +- // We only do checks if the rate is limited +- if ( event.GetPosition() != (int)UNLIMITED ) { +- wxSpinCtrl* dlrate = CastChild( IDC_MAXDOWN, wxSpinCtrl ); +- +- if ( event.GetPosition() < 4 ) { +- if ( ( event.GetPosition() * 3 < dlrate->GetValue() ) || +- ( dlrate->GetValue() == (int)UNLIMITED ) ) { +- dlrate->SetValue( event.GetPosition() * 3 ); +- } +- } else if ( event.GetPosition() < 10 ) { +- if ( ( event.GetPosition() * 4 < dlrate->GetValue() ) || +- ( dlrate->GetValue() == (int)UNLIMITED ) ) { +- dlrate->SetValue( event.GetPosition() * 4 ); +- } +- } +- } }