Hello,
 
 Attached is a patch to fix gui bug - error in calculating average upload speed 
for client.
 See http://mldonkey.sourceforge.net/forums/viewtopic.php?t=5456

-- 
 ygrek
 http://ygrek.org.ua/

commit ef1713c6a83d23df7f0b6f31de64772178205f01
Author: ygrek <[email protected]>
Date:   Tue Mar 23 20:44:30 2010 +0200

    fix

diff --git a/src/daemon/driver/driverCommands.ml b/src/daemon/driver/driverCommands.ml
index 6e9a126..877dbbc 100644
--- a/src/daemon/driver/driverCommands.ml
+++ b/src/daemon/driver/driverCommands.ml
@@ -2779,8 +2779,8 @@ let _ =
                         onMouseOut=\\\"mOut(this);\\\"
                         onClick=\\\"parent.fstatus.location.href='submit?q=friend_add+%d'\\\"\\>"
                             (html_mods_cntr ()) (client_num c)
-                          ( float_of_int (Int64.to_int i.client_session_uploaded / 1024) /.
-                              float_of_int (max 1 ((last_time ()) - i.client_connect_time)) )
+                          (Int64.to_float i.client_session_uploaded /. 1024. /.
+                              float_of_int (max 1 ((last_time ()) - i.client_connect_time)))
                           (client_num c);
 
                           html_mods_td buf [

_______________________________________________
Mldonkey-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-users

Reply via email to