diff options
author | Nick White <arch@njw.me.uk> | 2007-03-02 00:23:10 +0000 |
---|---|---|
committer | Nick White <arch@njw.me.uk> | 2007-03-02 00:23:10 +0000 |
commit | c85db409583755f6975d97b94b8437c7b9657ab5 (patch) | |
tree | 0dc4b7c92b9ad379d75ccaf3296952d1c32ff11b /download.c | |
parent | 877096c9f399e6a12c48f792f5896c04cf338acb (diff) |
Improve download output formatting
Added carriage return to end of save_file
Changed "Downloading" to "Download Progress"
Updated TODO
git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-1
Diffstat (limited to 'download.c')
-rw-r--r-- | download.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |