From a4efbe0d6da28eea0de4d414af25e7853ab8adfa Mon Sep 17 00:00:00 2001 From: Eugene Grosbein Date: Mon, 24 Jan 2022 11:17:24 +0700 Subject: [PATCH] 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);