schollz / progressbar

A really basic thread-safe progress bar for Golang applications
https://pkg.go.dev/github.com/schollz/progressbar/v3?tab=doc
MIT License
4.08k stars 220 forks source link

Use the existing humanize function to support GB/s rates #125

Closed NathanBaulch closed 2 years ago

NathanBaulch commented 2 years ago

I'd like to support both B/s and GB/s file rates as well. This PR uses the existing humanizeBytes function when formatting averateRate instead of just hard coding kB and MB.

schollz commented 2 years ago

This is so perfect, thank you!