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 | |
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
-rw-r--r-- | TODO | 13 | ||||
-rw-r--r-- | download.c | 4 |
2 files changed, 7 insertions, 10 deletions
@@ -2,16 +2,14 @@ add news, with current status, likely time to usability, & hello -checkin to arch - -add tasks to tracker - -look into getting a commit mailing list (writable) to work +add todo to tasks tracker post a screenshot? -immediate term- +add long options + save entered directories to config file utilise and expand initial clean procedures @@ -28,18 +26,15 @@ handle file errors better -malloc- -redo passing memory pointers rather than whole arrays etc. +include cover as just another section entry malloc sections, items, and media will ensure ease of finding existance, as no_of_sections no_of_media no_of_items can be used (embedded in struct) -reduce code duplication - handle smil files successfully if no required contents file exists, attempt to retrieve it, even if update is not passed comment source - at least all functions -add long options use autotools integrate gettext @@ -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; |