mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 03:55:46 +03:00
Keep HTTP progress updated, and display a progress indicator during the
download
This commit is contained in:
@@ -253,6 +253,10 @@ static void http_rx_data ( struct http_request *http,
|
||||
return;
|
||||
}
|
||||
|
||||
/* Update progress */
|
||||
http->async.completed = http->buffer->fill;
|
||||
http->async.total = http->content_length;
|
||||
|
||||
/* If we have reached the content-length, stop now */
|
||||
if ( http->content_length &&
|
||||
( http->buffer->fill >= http->content_length ) ) {
|
||||
|
||||
Reference in New Issue
Block a user