From a6f1d98b054fa1439aeccfeaf855e4527b9edf69 Mon Sep 17 00:00:00 2001 From: spiralvoice Date: Fri, 3 Aug 2007 22:07:54 +0000 Subject: [PATCH] patch #6135 --- distrib/ChangeLog | 4 ++++ src/networks/bittorrent/bTMain.ml | 1 + 2 files changed, 5 insertions(+) diff --git a/distrib/ChangeLog b/distrib/ChangeLog index 07e2dab5..0aa296d7 100644 --- a/distrib/ChangeLog +++ b/distrib/ChangeLog @@ -14,6 +14,10 @@ http://mldonkey.sourceforge.net/Windows#MinGW_Installation ChangeLog ========= +2007/08/04 +6135: BT: Fix high CPU load when share_scan_interval = 0 + due to buggy patch #6049 (thx to darkman) +------------------------------------------------------------------------------- 2007/07/27: version 2.9.0 = tag release-2-9-0 6118: Configure: Update defaults - enable DirectConnect by default diff --git a/src/networks/bittorrent/bTMain.ml b/src/networks/bittorrent/bTMain.ml index 35e9383e..3d5226de 100644 --- a/src/networks/bittorrent/bTMain.ml +++ b/src/networks/bittorrent/bTMain.ml @@ -76,6 +76,7 @@ let enable () = with e -> lprintf "Exception in BTTracker.start_tracker: %s\n" (Printexc2.to_string e)); + if !!share_scan_interval <> 0 then add_session_timer enabler ((float_of_int !!share_scan_interval) *. 60.) (fun _ -> BTInteractive.share_files (); ); -- 2.11.4.GIT