mirror of https://github.com/Xhofe/alist
fix: adapt update progress type
parent
ce6e486666
commit
aba8bc0ec2
|
@ -258,7 +258,7 @@ func (d *AliyundriveOpen) upload(ctx context.Context, dstDir model.Obj, stream m
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
offset += partSize
|
offset += partSize
|
||||||
up(i * 100 / count)
|
up(float64(i*100) / float64(count))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Debugf("[aliyundrive_open] rapid upload success, file id: %s", createResp.FileId)
|
log.Debugf("[aliyundrive_open] rapid upload success, file id: %s", createResp.FileId)
|
||||||
|
|
Loading…
Reference in New Issue