aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/hget.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-10-12 01:47:30 +0000
committerrsc <devnull@localhost>2006-10-12 01:47:30 +0000
commit1866bcc995cc56be2ee1a9a954aa93d102727077 (patch)
treeba3610910473d84b610bd91e11643772f056f4e7 /src/cmd/hget.c
parentb46716cfb28526c9ba0d178f5f1ac5418ac8e443 (diff)
downloadplan9port-1866bcc995cc56be2ee1a9a954aa93d102727077.tar.gz
plan9port-1866bcc995cc56be2ee1a9a954aa93d102727077.tar.bz2
plan9port-1866bcc995cc56be2ee1a9a954aa93d102727077.zip
print final verbose update (Lou Kamenov)
Diffstat (limited to 'src/cmd/hget.c')
-rw-r--r--src/cmd/hget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/hget.c b/src/cmd/hget.c
index d78bb522..5c6ee807 100644
--- 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);
}