···224224 // for some reason, this only returns 0.
225225 // instead, we pull the file size from the ffmpeg output directly.
226226 if total == 0 { total = video.SizeBytes }
227227- fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total))
227227+ fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total) * 100)
228228 })
229229 ytVideo, err := call.Do()
230230 if err != nil {