Commit 11757980 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

common: add the current progress to the total size

parent 9bc0dfa3
......@@ -249,7 +249,7 @@ func (d *HTTPDownloader) Download(dst *os.File, src *url.URL) error {
return err
}
d.total = uint(resp.ContentLength)
d.total = d.progress + uint(resp.ContentLength)
var buffer [4096]byte
for {
n, err := resp.Body.Read(buffer[:])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment