[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/ktorrent/2.0/libktorrent/torrent
From: Joris Guisson <joris.guisson () gmail ! com>
Date: 2006-08-23 18:11:09
Message-ID: 1156356669.035849.4948.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 576292 by guisson:
Merged fix from trunk
M +6 -2 multifilecache.cpp
--- branches/ktorrent/2.0/libktorrent/torrent/multifilecache.cpp #576291:576292
@@ -337,19 +337,23 @@
c->setStatus(Chunk::ON_DISK);
return;
}
- else if (tflist.count() == 1 && c->getStatus() == Chunk::BUFFERED)
+ /* else if (tflist.count() == 1 && c->getStatus() == Chunk::BUFFERED)
{
// buffered chunks are slightly more difficult
CacheFile* fd = files.find(tflist[0]);
if (!fd)
return;
- Uint64 off = c->getIndex() * tor.getChunkSize();
+ const TorrentFile & f = tor.getFile(tflist[0]);
+
+ Uint64 off = FileOffset(c,f,tor.getChunkSize());
+ //c->getIndex() * tor.getChunkSize();
fd->write(c->getData(),c->getSize(),off);
c->clear();
c->setStatus(Chunk::ON_DISK);
return;
}
+ */
// Out() << "Writing to " << tflist.count() << " files " << endl;
Uint64 written = 0; // number of bytes written
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic