diff options
author | Nick White <git@njw.me.uk> | 2012-08-18 17:40:43 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2012-08-18 17:40:43 +0100 |
commit | d018b3d5034035caadb2f9ed1084bc44bda17620 (patch) | |
tree | c7ccd5fee5e5f52c4efe0809c45dc6f757c9ca4e /getabook.c | |
parent | ec97e172ab11d411b3a320bcb3e57d201d459eec (diff) |
Add a progress bar to the gui
Diffstat (limited to 'getabook.c')
-rw-r--r-- | getabook.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -211,6 +211,7 @@ int main(int argc, char *argv[]) if(pages[i]->url[0] == '\0') getpageurls(pages[i]->num); getpage(pages[i]); + printf("%.0f%% done\n", (float)i / (float)numpages * 100); } } else if(argv[1][0] == '-' && argv[1][1] == 'n') { while(fgets(buf, BUFSIZ, stdin)) { |