diff options
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 ); + } + |