print final verbose update (Lou Kamenov)
This commit is contained in:
parent
b46716cfb2
commit
1866bcc995
@ -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…
Reference in New Issue
Block a user