summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'download.c')
-rw-r--r--download.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/download.c b/download.c
index 240393a..c099c1f 100644
--- a/download.c
+++ b/download.c
@@ -111,6 +111,8 @@ void save_file(CURL *curl_handle, char *url, char *filepath)
printf("Content Length: %lf\n",d);
*/
fclose(file);
+
+ printf("\r");
}
else {
fprintf(stderr,"Error: curl failed to initialise.\n");
@@ -124,7 +126,7 @@ int update_progress(void *data, double dltotal, double dlnow,
{
double frac;
frac = 100 * dlnow / dltotal;
- printf("\rDownloading... %3.0lf%% ", frac);
+ printf("\rDownload progress: %3.0lf%% ", frac);
fflush(stdout);
return 0;