[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverCommands.
From: |
mldonkey-commits |
Subject: |
[Mldonkey-commits] Changes to mldonkey/src/daemon/driver/driverCommands.ml |
Date: |
Sun, 30 Oct 2005 16:10:18 -0500 |
Index: mldonkey/src/daemon/driver/driverCommands.ml
diff -u mldonkey/src/daemon/driver/driverCommands.ml:1.96
mldonkey/src/daemon/driver/driverCommands.ml:1.97
--- mldonkey/src/daemon/driver/driverCommands.ml:1.96 Sun Oct 23 16:05:41 2005
+++ mldonkey/src/daemon/driver/driverCommands.ml Sun Oct 30 21:10:18 2005
@@ -1051,16 +1051,7 @@
dlkbs ulkbs (CommonGlobals.version ())
end
else
- Printf.bprintf buf "Down: %.1f KB/s ( %d + %d ) | Up: %.1f KB/s ( %d
+ %d ) | Shared: %d/%s | Uploaded: %s"
- (( (float_of_int !udp_download_rate) +. (float_of_int
!control_download_rate)) /. 1024.0)
- !udp_download_rate
- !control_download_rate
- (( (float_of_int !udp_upload_rate) +. (float_of_int
!control_upload_rate)) /. 1024.0)
- !udp_upload_rate
- !control_upload_rate
- !nshared_files
- (size_of_int64 !nshared_bytes)
- (size_of_int64 !upload_counter);
+ DriverInteractive.print_bw_stats buf;
""
), ":\t\t\t\tprint current bandwidth stats";
@@ -2567,30 +2558,17 @@
| ["queued"] ->
let list = List2.tail_map file_info !!files in
let list = List.filter ( fun f -> f.file_state = FileQueued )
list in
- let list = Sort.list (fun f1 f2 -> f1.file_name >= f2.file_name)
list in
- simple_print_file_list false buf list o;
+ DriverInteractive.display_active_file_list buf o list;
""
| ["paused"] ->
let list = List2.tail_map file_info !!files in
let list = List.filter ( fun f -> f.file_state = FilePaused )
list in
- let list = Sort.list (fun f1 f2 -> f1.file_name >= f2.file_name)
list in
- simple_print_file_list false buf list o;
+ DriverInteractive.display_active_file_list buf o list;
""
| ["downloading"] ->
let list = List2.tail_map file_info !!files in
let list = List.filter ( fun f -> f.file_state = FileDownloading
) list in
- let list = Sort.list
- ( fun f1 f2 ->
- f2.file_size -- f2.file_downloaded <=
- f1.file_size -- f1.file_downloaded
- ) list in
- simple_print_file_list false buf list o;
- if !!done_files <> [] then
- begin
- simple_print_file_list true buf
- (List2.tail_map file_info !!done_files) o;
- Printf.bprintf buf "Use 'commit' to move downloaded files to
the incoming directory"
- end;
+ DriverInteractive.display_file_list buf o list;
""
| [arg] ->
let num = int_of_string arg in
@@ -2624,7 +2602,8 @@
!!done_files;
""
| _ ->
- DriverInteractive.display_file_list buf o;
+ let list = List2.tail_map file_info !!files in
+ DriverInteractive.display_file_list buf o list;
""
), "<num> :\t\t\t\t$bview file info$n";