zom-ponks / rpcs3-gameupdater

Fetches game updates for the RPCS3 emulator
MIT License
2 stars 1 forks source link

Need ETA for current and total #46

Open John-Gee opened 4 years ago

John-Gee commented 4 years ago

We need better downloading display, especially now with the parallel stuff, but we also should add ETAs, for the current file, for the current game, and for the whole thing.

(That's obviously easier said than done)

John-Gee commented 4 years ago

A few ideas to try:

Have each download goroutine send its current information to a channel, that is read by another goroutine function to display as needed (add all the speeds to get the total download speed, display a list of all current in-download files/games). We probably need something prettier to display all that than just my stupid carriage move though. I'm open to a nice CLI library, I read about Cobra earlier, not sure if that'd be it or not.

John-Gee commented 4 years ago

@zom-ponks Actually, I'm starting to wonder, do we need a pretty terminal UI? Is anyone even going to ever use it, even me? I might do this just so that the GUI can use the data, but I'm really not sure if there's any value in making this pretty at all after all, or even printing all that stuff for any other use than debugging. For most intent and purpose, this is a one use only tool, for that a GUI-only may be more than enough.