print final verbose update (Lou Kamenov)
This commit is contained in:
parent
b46716cfb2
commit
1866bcc995
1 changed files with 2 additions and 2 deletions
|
|
@ -532,7 +532,7 @@ dohttp(URL *u, URL *px, Range *r, Out *out, long mtime)
|
||||||
if(output(out, buf, n) != n)
|
if(output(out, buf, n) != n)
|
||||||
break;
|
break;
|
||||||
tot += n;
|
tot += n;
|
||||||
if(verbose && vtime != time(0)) {
|
if(verbose && (vtime != time(0) || r->start == r->end)) {
|
||||||
vtime = time(0);
|
vtime = time(0);
|
||||||
fprint(2, "%ld %ld\n", r->start+tot, r->end);
|
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)
|
if(output(out, buf, i) != i)
|
||||||
return Error;
|
return Error;
|
||||||
r->start += i;
|
r->start += i;
|
||||||
if(verbose && vtime != time(0)) {
|
if(verbose && (vtime != time(0) || r->start == r->end)) {
|
||||||
vtime = time(0);
|
vtime = time(0);
|
||||||
fprint(2, "%ld %ld\n", r->start, r->end);
|
fprint(2, "%ld %ld\n", r->start, r->end);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue