From c95e1813781ae3797e1bf1acc7f7b9f3d226ede8 Mon Sep 17 00:00:00 2001 From: buinsky Date: Sat, 13 Dec 2014 03:01:03 +0300 Subject: [PATCH] Disable flooding debug messages --- src/qtlibtorrent/qtorrenthandle.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index d30d0cacc..4c06b68f7 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -63,12 +63,10 @@ static QPair get_file_extremity_pieces(const torrent_info& t, int file // Determine the first and last piece of the file int first_piece = floor((file.offset + 1) / (float) piece_size); Q_ASSERT(first_piece >= 0 && first_piece < num_pieces); - qDebug("First piece of the file is %d/%d", first_piece, num_pieces - 1); int num_pieces_in_file = ceil(file.size / (float) piece_size); int last_piece = first_piece + num_pieces_in_file - 1; Q_ASSERT(last_piece >= 0 && last_piece < num_pieces); - qDebug("last piece of the file is %d/%d", last_piece, num_pieces - 1); return qMakePair(first_piece, last_piece); }