plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 1866bcc995cc56be2ee1a9a954aa93d102727077
parent b46716cfb28526c9ba0d178f5f1ac5418ac8e443
Author: rsc <devnull@localhost>
Date:   Thu, 12 Oct 2006 01:47:30 +0000

print final verbose update (Lou Kamenov)

Diffstat:
Msrc/cmd/hget.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cmd/hget.c b/src/cmd/hget.c @@ -532,7 +532,7 @@ dohttp(URL *u, URL *px, Range *r, Out *out, long mtime) if(output(out, buf, n) != n) break; tot += n; - if(verbose && vtime != time(0)) { + if(verbose && (vtime != time(0) || r->start == r->end)) { vtime = time(0); fprint(2, "%ld %ld\n", r->start+tot, r->end); } @@ -1226,7 +1226,7 @@ ftpxfer(int in, Out *out, Range *r) if(output(out, buf, i) != i) return Error; r->start += i; - if(verbose && vtime != time(0)) { + if(verbose && (vtime != time(0) || r->start == r->end)) { vtime = time(0); fprint(2, "%ld %ld\n", r->start, r->end); }