fix: adapt update progress type

refactor/offline-download
Andy Hsu 2023-10-20 21:15:37 +08:00
parent ce6e486666
commit aba8bc0ec2
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ func (d *AliyundriveOpen) upload(ctx context.Context, dstDir model.Obj, stream m
return nil, err
}
offset += partSize
up(i * 100 / count)
up(float64(i*100) / float64(count))
}
} else {
log.Debugf("[aliyundrive_open] rapid upload success, file id: %s", createResp.FileId)