Package: mimms
Version: 0.0.9-1
Severity: wishlist
hi
when mimms downloads, it prints a long list of dots; this is not so useful,
as it clobbers the terminal and does not give any idea of the real progress
in downloading.
Here is a simple patch that replaces the dots with a printout of the form
packet nnnn
It would be better to have a printout like:
progress nn% estimated time remaining hh:mm:ss
and I could prepare the patch if you tell me how to know the size of
the final file, or the expected total number of packets (if it is possible
to get it from the headers)
a.
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages mimms depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.1-7 GCC support library
ii libpopt0 1.7-5 lib for parsing cmdline parameters
ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3
ii libuuid1 1.37-2sarge1 universally unique id library
-- no debconf information
--
Andrea Mennucc
"Ukn ow,Ifina llyfixe dmysp acebar.ohwh atthef"
--- mimms-0.0.9-old/mimms.cpp 2004-10-22 16:38:33.000000000 +0200
+++ mimms-0.0.9/mimms.cpp 2005-10-28 14:26:23.000000000 +0200
@@ -744,9 +744,9 @@
24, data);
-
+ { int packet_num=0;
while (get_media_packet(s, packet_length)) {
- printf(".");
+ fprintf(stderr,"packet %d \r",packet_num++);
if (time != -1) {
time_t cur_time;
::time(&cur_time);
@@ -755,7 +755,7 @@
break;
}
}
- }
+ }}
close (output_fh);
close (s);