Date: Mon, 24 Jan 2022 04:18:24 GMT From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a4efbe0d6da2 - main - fetch(1): correct progress accounting after previous commit Message-ID: <202201240418.20O4IOIu033208@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201240418.20O4IOIu033208>