diff options
author | mezz <mezz@FreeBSD.org> | 2007-04-30 12:21:44 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2007-04-30 12:21:44 +0800 |
commit | 3e5918d1d8ce7765716777438d05bd3d9e8f6c03 (patch) | |
tree | 9d66f4fea9dedd28ba70175a9cacdd2274e4734b /net-p2p/transmission | |
parent | 8505d211c8d2f8b7b86818317ae698bd74735a2e (diff) | |
download | freebsd-ports-gnome-3e5918d1d8ce7765716777438d05bd3d9e8f6c03.tar.gz freebsd-ports-gnome-3e5918d1d8ce7765716777438d05bd3d9e8f6c03.tar.zst freebsd-ports-gnome-3e5918d1d8ce7765716777438d05bd3d9e8f6c03.zip |
Fix a potentially bug that can get tracker users' statistics skewed. Bump the
PORTREVISION.
Obtained from: Transmission SVN
Diffstat (limited to 'net-p2p/transmission')
-rw-r--r-- | net-p2p/transmission/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/transmission/files/patch-libtransmission_tracker.c | 35 |
2 files changed, 36 insertions, 1 deletions
diff --git a/net-p2p/transmission/Makefile b/net-p2p/transmission/Makefile index dba7cee895fc..02546643dd21 100644 --- a/net-p2p/transmission/Makefile +++ b/net-p2p/transmission/Makefile @@ -7,7 +7,7 @@ PORTNAME= transmission PORTVERSION= 0.71 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= net-p2p MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/ DISTNAME= Transmission-${PORTVERSION} diff --git a/net-p2p/transmission/files/patch-libtransmission_tracker.c b/net-p2p/transmission/files/patch-libtransmission_tracker.c new file mode 100644 index 000000000000..6f8ad52d06a6 --- /dev/null +++ b/net-p2p/transmission/files/patch-libtransmission_tracker.c @@ -0,0 +1,35 @@ +Index: /trunk/libtransmission/tracker.c +=================================================================== +--- libtransmission/tracker.c (revision 1685) ++++ libtransmission/tracker.c (revision 1810) +@@ -516,16 +516,15 @@ + char * event, * trackerid, * idparam; + uint64_t left; +- uint64_t down; +- uint64_t up; + char start; + int numwant = 50; + +- down = tor->downloadedCur; +- up = tor->uploadedCur; + if( tc->started ) + { + event = "&event=started"; +- down = 0; +- up = 0; ++ ++ tor->downloadedPrev += tor->downloadedCur; ++ tor->downloadedCur = 0; ++ tor->uploadedPrev += tor->uploadedCur; ++ tor->uploadedCur = 0; + + if( shouldChangePort( tc ) ) +@@ -576,6 +575,6 @@ + "%s", + tcInf->announce, start, tor->escapedHashString, +- tc->id, tc->publicPort, up, down, left, numwant, +- tor->key, idparam, trackerid, event ); ++ tc->id, tc->publicPort, tor->uploadedCur, tor->downloadedCur, ++ left, numwant, tor->key, idparam, trackerid, event ); + } + |