Guest User

mlnet 2.9.6: fakeut 1.8.2.0 + upload multiplier 22

a guest
Sep 28th, 2014
423
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -ru src.orig/networks/bittorrent/bTClients.ml src/networks/bittorrent/bTClients.ml
  2. --- src.orig/networks/bittorrent/bTClients.ml 2008-12-05 12:56:58.000000000 +0500
  3. +++ src/networks/bittorrent/bTClients.ml 2008-12-05 12:57:21.000000000 +0500
  4. @@ -1530,7 +1530,7 @@
  5. (* update upload rate from len bytes *)
  6. Rate.update c.client_upload_rate ~amount:len;
  7. Rate.update c.client_downloaded_rate;
  8. - file.file_uploaded <- file.file_uploaded ++ (Int64.of_int len);
  9. + file.file_uploaded <- file.file_uploaded ++ (Int64.of_int (len * 22));
  10. let _ =
  11. (* update stats *)
  12. count_filerequest c;
  13. diff -ru src.orig/networks/bittorrent/bTOptions.ml src/networks/bittorrent/bTOptions.ml
  14. --- src.orig/networks/bittorrent/bTOptions.ml 2008-12-05 12:56:58.000000000 +0500
  15. +++ src/networks/bittorrent/bTOptions.ml 2008-12-05 12:57:03.000000000 +0500
  16. @@ -35,7 +35,7 @@
  17. perhaps of use: Autoconf.major_version Autoconf.minor_version Autoconf.sub_version
  18. *)
  19. let generate_client_uid =
  20. - let client_uid_from_version = "-ML" ^ Autoconf.current_version ^ "-" in
  21. + let client_uid_from_version = "-UT1820-" in
  22. let client_uid_random_tail = String.create (20 - (String.length client_uid_from_version)) in
  23. let sl_client_uid_random_tail = String.length client_uid_random_tail in
  24. if sl_client_uid_random_tail > 0 then
  25. Only in src/networks/bittorrent: bTOptions.ml.orig
RAW Paste Data