clean up unessesary comments

This commit is contained in:
Bruce MacDonald 2023-07-06 15:00:15 -04:00 committed by Jeffrey Morgan
parent c9f45abef3
commit 350aec772b

View file

@ -44,15 +44,11 @@ func run(model string) error {
mutex.Lock()
progressData = progress
if bar == nil {
uiprogress.Start() // start rendering
bar = uiprogress.AddBar(int(progress.Total)) // Add a new bar
// display the total file size and how much has downloaded so far
uiprogress.Start()
bar = uiprogress.AddBar(int(progress.Total))
bar.PrependFunc(func(b *uiprogress.Bar) string {
return fmt.Sprintf("Downloading: %.2f GB / %.2f GB", bytesToGB(progressData.Completed), bytesToGB(progressData.Total))
})
// display completion percentage
bar.AppendFunc(func(b *uiprogress.Bar) string {
return fmt.Sprintf(" %d%%", int((float64(progressData.Completed)/float64(progressData.Total))*100))
})