* Fixed the hashing so it properly starts and stops. When

DownloadList::pause is called it clears the "hashing" variable.

* Added convenience functions for retriving torrent::Object key's of
specific types.

* Iterate to the first visible transfer in the chunks seen view. Patch
by Josef Drexler.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@732 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-28 22:50:58 +00:00
parent ee353bfc9f
commit 4b79a7c47f
6 changed files with 27 additions and 18 deletions
@@ -99,6 +99,9 @@ WindowDownloadChunksSeen::redraw() {
std::vector<torrent::BlockList*>::const_iterator itrTransfer = transferChunks.begin();
while (itrTransfer != transferChunks.end() && (uint32_t)(chunk - seen) > (*itrTransfer)->index())
itrTransfer++;
for (int y = 1; y < m_canvas->get_height() && chunk < last; ++y) {
m_canvas->print(0, y, "%5u ", (int)(chunk - seen));