git: a4efbe0d6da2 - main - fetch(1): correct progress accounting after previous commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jan 2022 04:18:24 UTC
The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=a4efbe0d6da28eea0de4d414af25e7853ab8adfa commit a4efbe0d6da28eea0de4d414af25e7853ab8adfa Author: Eugene Grosbein <eugen@FreeBSD.org> AuthorDate: 2022-01-24 04:17:24 +0000 Commit: Eugene Grosbein <eugen@FreeBSD.org> CommitDate: 2022-01-24 04:17:24 +0000 fetch(1): correct progress accounting after previous commit MFC after: 1 month --- usr.bin/fetch/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 3526e5d6c5c1..3e24707d6021 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -835,7 +835,7 @@ again: if (us.size != -1 && count < us.size) { warnx("%s appears to be truncated: %jd/%jd bytes", path, (intmax_t)count, (intmax_t)us.size); - if(!o_stdout && a_flag && us.size > size_prev) { + if(!o_stdout && a_flag && count > size_prev) { fclose(f); if (w_secs) sleep(w_secs);