From nobody Mon Jan 24 04:18:24 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BD8F81976DF0; Mon, 24 Jan 2022 04:18:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JhxYX4rXBz4skX; Mon, 24 Jan 2022 04:18:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642997904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dqk0Jwv4rmO1EKxLv/O0IHtovesS9AbyhzAWK9uPIN0=; b=r2AZ12MkqUYh90w1EVSGJ11JoQq4J/LDrnjB8mh+9d129SbjmTjc0TaZIkw5fufD7v94zl P0V3TmBPGazYb3/Z3P1bWwkwRCEIArsBp0rSLhCGCf3fG8i9I5ECK8zI2EaOTN+UajBg/B aURRDiOVJJ543WaRHUrfMWyrW7iETRpRZfp3kmTuymJvU+lQJaZwOs48LqKl0iZrHlEcdS Z5/175C0MZ054ZjgwA9m8MNKwx3A3WSlCI2BWb3n4wuRrprgrKrZ8DCwKTUqFCfhqXhzGv eWYWcvYGmbKxfgxFz9IZLoVbTty6/DbwA4K6w3VJHGlIBL0ZMA3SP7/WuHxRfg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 854DF779E; Mon, 24 Jan 2022 04:18:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20O4IOIr033209; Mon, 24 Jan 2022 04:18:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20O4IOIu033208; Mon, 24 Jan 2022 04:18:24 GMT (envelope-from git) Date: Mon, 24 Jan 2022 04:18:24 GMT Message-Id: <202201240418.20O4IOIu033208@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eugene Grosbein Subject: git: a4efbe0d6da2 - main - fetch(1): correct progress accounting after previous commit List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4efbe0d6da28eea0de4d414af25e7853ab8adfa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642997904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dqk0Jwv4rmO1EKxLv/O0IHtovesS9AbyhzAWK9uPIN0=; b=JNRFjciqld96eTRM+voEWV3mZURBU6akSk6FxxefVaV+wFlamfECJccbT/D8p0ethXOlg/ oN3Y1fnJOG5ng48A2ReXkVhZrJjrxdbyc90J4M2lmZRT6iVVYD6YiavNXt6ncVjREzUqJi DiTq/lvls/G6auW2SJpMoxzK3a7SD69jYiqQ0wwycweNFzWLd9rs/J8s7eysGgqDa+h3fk e4S3N2/X/IUfj4keZdb+BLUOOUuv8HGFGG9L6VHZB7R7Qb2LPskcQ/IXcTbvHL23mtb0eF Lmk3Q1YxVkf6Wj7plnDC596oSrcY/jo08qXfg3SABV2HxO74lmu8+rhzh8o2ZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642997904; a=rsa-sha256; cv=none; b=BkHPD8cpQDSRC1hPOFGHQuKN6QAXOcv5owHPZ2FgVS+M+utwwBh3XwCn/ir1ychEtdCLGG vxskJ9KXiHAPbec9T9HgfMrW6pvoCgr909S2WlnfWXJzFsz7tInlONU84kb724l1MVYIko Cwyl/GFCYjQuXSnFRKMbnQp88PbZ0xa/s70wDb7vtSju1X11XK5JOZRpDnZU2Pg9oJJgGF /tIgMqoIbpOP+57TTDRroHa3eDMXuKCjgJ3O7Cju3Ev+ms4k+1Bi4w5tUWWZVPtA9OqPdv r82Z3Oyt75D3EzmMKfnk18eI0G4DsbF/3vKgvOHezSfvEY00unBXaY7m6bWsyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=a4efbe0d6da28eea0de4d414af25e7853ab8adfa commit a4efbe0d6da28eea0de4d414af25e7853ab8adfa Author: Eugene Grosbein AuthorDate: 2022-01-24 04:17:24 +0000 Commit: Eugene Grosbein 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);