From 4e8fc9d43ae92e27fb45e9cb51ef5c0a4b940908 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 2 Nov 2009 03:49:16 +0000 Subject: [PATCH] client_test fixes --- examples/client_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index d5a2beb92..ab48cd3f6 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -571,12 +571,10 @@ void scan_dir(std::string const& dir_path using namespace libtorrent; - printf("scanning dir: %s\n", dir_path.c_str()); error_code ec; for (directory i(dir_path, ec); !i.done(); i.next(ec)) { std::string file = i.file(); - printf(" found: %s\n", file.c_str()); if (extension(file) != ".torrent") continue; handles_t::iterator k = handles.find(file); @@ -588,7 +586,7 @@ void scan_dir(std::string const& dir_path // the file has been added to the dir, start // downloading it. - add_torrent(ses, handles, file, preferred_ratio, compact_mode + add_torrent(ses, handles, combine_path(dir_path, file), preferred_ratio, compact_mode , save_path, true, torrent_upload_limit, torrent_download_limit); valid.insert(file); }