mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverInteracti


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverInteractive.ml
Date: Tue, 28 Jun 2005 18:48:15 -0400

Index: mldonkey/src/daemon/driver/driverInteractive.ml
diff -u mldonkey/src/daemon/driver/driverInteractive.ml:1.36 
mldonkey/src/daemon/driver/driverInteractive.ml:1.37
--- mldonkey/src/daemon/driver/driverInteractive.ml:1.36        Sat May 28 
10:20:33 2005
+++ mldonkey/src/daemon/driver/driverInteractive.ml     Tue Jun 28 22:48:13 2005
@@ -39,19 +39,6 @@
    
 (* ripped from gui_downloads *)
 
-let time_to_string time =
-  let days = time / 60 / 60 / 24 in
-  let rest = time - days * 60 * 60 * 24 in
-  let hours = rest / 60 / 60 in
-  let rest = rest - hours * 60 * 60 in
-  let minutes = rest / 60 in
-  let seconds = rest - minutes * 60 in
-    if days > 0
-    then Printf.sprintf " %dd " days
-    else if hours > 0
-    then Printf.sprintf " %dh %dm " hours minutes 
-    else Printf.sprintf " %dm " minutes 
-
 let calc_file_eta f =
   let size = Int64.to_float f.file_size in
   let downloaded = Int64.to_float f.file_downloaded in




reply via email to

[Prev in Thread] Current Thread [Next in Thread]