mirror of
https://github.com/transmission/transmission
synced 2024-12-28 10:38:45 +00:00
* update tor->activityDate whenever piece data is transferred.
This commit is contained in:
parent
89da2294b1
commit
d27c9c5034
1 changed files with 2 additions and 0 deletions
|
@ -771,6 +771,7 @@ static void
|
||||||
clientGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
|
clientGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
|
||||||
{
|
{
|
||||||
tr_torrent * tor = msgs->torrent;
|
tr_torrent * tor = msgs->torrent;
|
||||||
|
tor->activityDate = tr_date( );
|
||||||
tor->downloadedCur += byteCount;
|
tor->downloadedCur += byteCount;
|
||||||
tr_rcTransferred( tor->download, byteCount );
|
tr_rcTransferred( tor->download, byteCount );
|
||||||
tr_rcTransferred( tor->handle->download, byteCount );
|
tr_rcTransferred( tor->handle->download, byteCount );
|
||||||
|
@ -780,6 +781,7 @@ static void
|
||||||
peerGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
|
peerGotBytes( tr_peermsgs * msgs, uint32_t byteCount )
|
||||||
{
|
{
|
||||||
tr_torrent * tor = msgs->torrent;
|
tr_torrent * tor = msgs->torrent;
|
||||||
|
tor->downloadedCur += byteCount;
|
||||||
tor->uploadedCur += byteCount;
|
tor->uploadedCur += byteCount;
|
||||||
tr_rcTransferred( tor->upload, byteCount );
|
tr_rcTransferred( tor->upload, byteCount );
|
||||||
tr_rcTransferred( tor->handle->upload, byteCount );
|
tr_rcTransferred( tor->handle->upload, byteCount );
|
||||||
|
|
Loading…
Reference in a new issue