Current-Users archive

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

progress(1) a bit drunk?



Hoi,

after the hiccups I've seen with progressbar.c in ftp(1) [1], now I'm
seeing something different. Isn't progress(1) supposed to display the
amount of data read followed by the data RATE ? Then why does my transfer [2]
look like this:

   439 MiB  439.11 MiB/s 
   441 MiB  441.55 MiB/s 
   442 MiB  442.44 MiB/s 

... (I'm sucking at 225 kiB/s) ?

To me it seems as if the reference to start-time has been lost. Instead of the
data RATE, all data read until now are displayed as rate.

This is for:

/usr/bin/progress:
     $NetBSD: crt0.c,v 1.17 2007/12/01 10:16:06 yamt Exp $
     $NetBSD: progress.c,v 1.15 2007/06/06 17:49:14 briggs Exp $
     $NetBSD: progressbar.c,v 1.18 2008/01/21 10:31:28 lukem Exp $

While the two following revisions of progress.c changed the license and
cleanup work, and the following revision of progressbar.c changed yet
another license clause, there was no functional change concerning
this on HEAD I think? (current is at 1.17 and 1.19 respectively).

-Martin

[1] For big transfers, time remaining might get displayed as (int)(unsigned) -1 
or -2 somewhere
in the middle...
[2] ssh othermachine "cd $mypkgcompdir && tar -cf - packages" | progress -b 
512k tar -xf -


Home | Main Index | Thread Index | Old Index