From d27c9c5034b1768c27a9a727cf2cb8abe3f8fcd3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 23 Sep 2007 14:12:17 +0000 Subject: [PATCH] * update tor->activityDate whenever piece data is transferred. --- libtransmission/peer-msgs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index ea82e59b8..0b3ba97a3 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -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 );