tprint final verbose update (Lou Kamenov) - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 1866bcc995cc56be2ee1a9a954aa93d102727077 (DIR) parent b46716cfb28526c9ba0d178f5f1ac5418ac8e443 (HTM) Author: rsc <devnull@localhost> Date: Thu, 12 Oct 2006 01:47:30 +0000 print final verbose update (Lou Kamenov) Diffstat: M src/cmd/hget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- (DIR) diff --git a/src/cmd/hget.c b/src/cmd/hget.c t@@ -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); } t@@ -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); }