From cb219c586c354b7b7ecaecab12b01da7ff2ba2b1 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 13 Nov 2009 11:48:51 +0000 Subject: [PATCH] debug version git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@550 e16421f0-f15b-0410-abcd-98678b794739 --- exec/leecher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/leecher.cpp b/exec/leecher.cpp index 036479f..9f02950 100644 --- a/exec/leecher.cpp +++ b/exec/leecher.cpp @@ -50,9 +50,9 @@ int main (int argn, char** args) { int file = p2tp::Open(filename,root_hash); printf("Downloading %s\n",root_hash.hex().c_str()); - while (!p2tp::IsComplete(file)) { + while (true) {//!p2tp::IsComplete(file)) { p2tp::Loop(TINT_SEC); - printf("done %lli of %lli (seq %lli) %lli dgram %lli bytes up, %lli dgram %lli bytes down\n", + eprintf("done %lli of %lli (seq %lli) %lli dgram %lli bytes up, %lli dgram %lli bytes down\n", p2tp::Complete(file), p2tp::Size(file), p2tp::SeqComplete(file), Datagram::dgrams_up, Datagram::bytes_up, Datagram::dgrams_down, Datagram::bytes_down ); -- 2.20.1