Subject: Re: CVS commit: src/usr.bin/progress
To: None <hubertf@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 04/20/2006 22:59:03
Hubert Feyrer <hubertf@netbsd.org> writes:
> Module Name: src
> Committed By: hubertf
> Date: Thu Apr 20 23:20:55 UTC 2006
>
> Modified Files:
> src/usr.bin/progress: progress.c
>
> Log Message:
> Don't try to determining the size of what's coming when reading from a pipe.
> Instead of reporting some bogus values, print no progress at all.
> (It's beyond me why stat(2) on a pipe returns funny values...
> see the PR below for some examples!)
>
> Fixes PR bin/33207 by myself.
Actually, there is a sane thing you could do, which would be to
twiddle something as packets come in and report an absolute count of
how much had been pushed through. That way, although you don't know
how long things will take, you can at least tell that something is
moving.
Perry