summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-01-29 01:23:29 +0100
committerJerome Forissier <[email protected]>2026-02-06 16:42:45 +0100
commit68a8f0f1f34dde836609bf34506d32bfdb2b1f6e (patch)
treea9b8e4b21ebd0ae3eb8542ef3b2fdb8c28871951 /drivers
parent337f50bad2ac8e1db126e4f6d372a3186bba2893 (diff)
net: lwip: wget: rework the '#' printing
Currently, the LWIP wget command prints excessive amount of progress indicator '#' for very long file downloads, limit this to one line that scales according to transfer size. The HTTP server does report the size of the entire file in protocol headers, which are received before the actual data transfer. Cache this information and use it to adaptively print progress indicator '#' until it fills one entire line worth of '#', which indicates the transfer has completed. This way, long transfers don't print pages of '#', but every transfer will print exactly one line worth of '#'. The algorithm for '#' printing is the same as TFTP tsize one. Signed-off-by: Marek Vasut <[email protected]> Acked-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions