--- src/daemon/common/commonGlobals.ml.orig Sat Sep 16 19:36:08 2006 +++ src/daemon/common/commonGlobals.ml Sun Oct 1 04:25:33 2006 @@ -215,19 +215,7 @@ let check_ul_dl_ratio () = if !!max_hard_upload_rate < 0 then max_hard_upload_rate =:= 0; - if !!max_hard_download_rate < 0 then max_hard_download_rate =:= 0; - 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 -> () - | Some limit -> - if !!max_hard_download_rate = 0 || - !!max_hard_download_rate > limit then - max_hard_download_rate =:= limit + if !!max_hard_download_rate < 0 then max_hard_download_rate =:= 0 let _ = option_hook max_hard_upload_rate (fun _ ->