]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Through a combination of insufficient variable initialization and
authorDag-Erling Smørgrav <des@FreeBSD.org>
Mon, 10 Sep 2018 19:39:20 +0000 (19:39 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Mon, 10 Sep 2018 19:39:20 +0000 (19:39 +0000)
commit6434dda6e396b0b7e96eb480c9dbd57c10065686
treebe53de809d68aa7eefe678fdaabfadfa689f4b5f
parent54af3d0dac3116a134e8e9dd8ad9ed9264bb3d9c
Through a combination of insufficient variable initialization and
imprudent reuse of static buffers, the end-of-transfer statistics
displayed when stdout is not a tty always ended up as 0 B / 0 Bps.
Reorganize the code to use caller-provided buffers, tweak the ETA
display a bit, and reduce the visual differences between the tty and
non-tty end-of-transfer displays.

PR: 202424
Approved by: re (gjb@)
usr.bin/fetch/fetch.c