Commit 2b45b16
committed
fix(download): initialize progress counter on resume
When resuming a download, Task.Cur started from 0 instead of the
number of already-downloaded chunks, causing misleading progress
display (e.g., "1/575" instead of "56/575"). Set Cur to current_cur-1
before the first Done() call so the counter reflects actual progress.1 parent acc84b7 commit 2b45b16
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
0 commit comments