diff options
| author | Michael Brown | 2007-01-29 05:19:45 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-29 05:19:45 +0100 |
| commit | bde8878eef55434428da0d8531c8c17d42867427 (patch) | |
| tree | 381c5fca26b33c0e7a571c481de76f51140b4624 /src/usr | |
| parent | Added async_block_progress() and default SIGUPDATE handler. (diff) | |
| download | ipxe-bde8878eef55434428da0d8531c8c17d42867427.tar.gz ipxe-bde8878eef55434428da0d8531c8c17d42867427.tar.xz ipxe-bde8878eef55434428da0d8531c8c17d42867427.zip | |
Keep HTTP progress updated, and display a progress indicator during the
download
Diffstat (limited to 'src/usr')
| -rw-r--r-- | src/usr/imgmgmt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/imgmgmt.c b/src/usr/imgmgmt.c index 0d2c9cb48..28801fe85 100644 --- a/src/usr/imgmgmt.c +++ b/src/usr/imgmgmt.c @@ -56,9 +56,10 @@ int imgfetch ( const char *uri_string, const char *name, strncpy ( image->name, name, ( sizeof ( image->name ) - 1 ) ); /* Download the file */ - if ( ( rc = async_block ( &async, start_download ( uri_string, &async, - &image->data, - &image->len ))) !=0) + if ( ( rc = async_block_progress ( &async, + start_download ( uri_string, &async, + &image->data, + &image->len )))!=0) goto err; /* Register the image */ |
