fix progress indicator (whoops lol)
This commit is contained in:
parent
4752e4bf4c
commit
45966d40ae
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ func UploadVideo(ctx context.Context, token *oauth2.Token, video *Video) (*youtu
|
|||
// for some reason, this only returns 0.
|
||||
// instead, we pull the file size from the ffmpeg output directly.
|
||||
if total == 0 { total = video.SizeBytes }
|
||||
fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total))
|
||||
fmt.Printf("Uploading... (%.2f%%)\n", float64(current) / float64(total) * 100)
|
||||
})
|
||||
ytVideo, err := call.Do()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue