feat(task): add speed monitor (#7655)
This commit is contained in:
@ -107,6 +107,7 @@ func (p *Cloud115) Status(task *tool.DownloadTask) (*tool.Status, error) {
|
||||
s.Progress = t.Percent
|
||||
s.Status = t.GetStatus()
|
||||
s.Completed = t.IsDone()
|
||||
s.TotalBytes = t.Size
|
||||
if t.IsFailed() {
|
||||
s.Err = fmt.Errorf(t.GetStatus())
|
||||
}
|
||||
|
Reference in New Issue
Block a user