libeech

BitTorrent library
git clone git://z3bra.org/libeech.git
Log | Files | Refs | README | LICENSE

commit c10ccc735ed9378f312b3ccc5a7dd23fb0bf79e7
parent 01ff08c8da3239cd769ae07f45977aa828f5cc31
Author: z3bra <contactatz3bradotorg>
Date:   Mon,  9 Jul 2018 08:31:01 +0200

Remove download progress output

Diffstat:
torrent.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/torrent.c b/torrent.c @@ -83,11 +83,9 @@ main(int argc, char *argv[]) printf("\t%s\n", t.files[i].path); glch_addpeer(&t, &peer, h, p); - while (glch_piececount(&t) < t.npiece) { + while (glch_piececount(&t) < t.npiece) glch_leech(&t, 5000); - printf("\rDownload: %2d%%", (100 * glch_piececount(&t)) / t.npiece); - fflush(stdout); - } + puts("\rDownload finished!"); return 0;