Sude- / lgogdownloader

LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
https://sites.google.com/site/gogdownloader/
Do What The F*ck You Want To Public License
698 stars 67 forks source link

Visual improvement for download rate and other stats #270

Open shmerl opened 4 months ago

shmerl commented 4 months ago

Currently, rates jump left and right due to numbers changing the number of digits. For example:

#2 ./system_shock/SystemShock/Content/Paks/SystemShock-Windows.pak (chunk 91/793)
  7% ▕█▋                        ▏ 227.21/3406.26MB @ 564.52kB/s ETA: 1h 36m 06s

That 564.52kB/s can jump around to shorter and etc. This results in erratic presentation of the value.

It could be nice to have some adaptive displaying, i.e. padding some spaces if the number gets shorter. I.e. detect what the max length was, and not shorten things from that but pad instead. For instance:

 564.52kB/s
  64.52kB/s

And so on.

This will make it look much neater by aligning some elements like units to the same stable position over time.

Same idea for any other values which change length due to number of digits.