fix(onedrive,ali): upload progress

This commit is contained in:
Noah Hsu
2022-08-31 22:04:04 +08:00
parent 7ac1d14eeb
commit b73dce33aa
2 changed files with 3 additions and 2 deletions

View File

@ -194,7 +194,7 @@ func (d *Onedrive) upBig(ctx context.Context, dstDir model.Obj, stream model.Fil
return errors.New(string(data))
}
res.Body.Close()
up(int(finish / stream.GetSize()))
up(int(finish * 100 / stream.GetSize()))
}
return nil
}