1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

* update tor->activityDate whenever piece data is transferred.

This commit is contained in:
Charles Kerr 2007-09-23 14:12:17 +00:00
parent 89da2294b1
commit d27c9c5034

View file

@ -771,6 +771,7 @@ static void
clientGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
{
tr_torrent * tor = msgs->torrent;
tor->activityDate = tr_date( );
tor->downloadedCur += byteCount;
tr_rcTransferred( tor->download, byteCount );
tr_rcTransferred( tor->handle->download, byteCount );
@ -780,6 +781,7 @@ static void
peerGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
{
tr_torrent * tor = msgs->torrent;
tor->downloadedCur += byteCount;
tor->uploadedCur += byteCount;
tr_rcTransferred( tor->upload, byteCount );
tr_rcTransferred( tor->handle->upload, byteCount );