reports redundant downloads to tracker, fixed downloaded calculation to be more stable when not including redundant. Improved redundant data accounting to be more accurate
This commit is contained in:
@@ -138,8 +138,8 @@ namespace libtorrent
|
||||
char str[1024];
|
||||
const bool stats = tracker_req().send_stats;
|
||||
snprintf(str, sizeof(str), "&peer_id=%s&port=%d&uploaded=%"PRId64
|
||||
"&downloaded=%"PRId64"&left=%"PRId64"&corrupt=%"PRId64"&compact=1"
|
||||
"&numwant=%d&key=%x&no_peer_id=1"
|
||||
"&downloaded=%"PRId64"&left=%"PRId64"&corrupt=%"PRId64"&redundant=%"PRId64
|
||||
"&compact=1&numwant=%d&key=%x&no_peer_id=1"
|
||||
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
||||
// the i2p tracker seems to verify that the port is not 0,
|
||||
// even though it ignores it otherwise
|
||||
@@ -148,6 +148,7 @@ namespace libtorrent
|
||||
, stats ? tracker_req().downloaded : 0
|
||||
, stats ? tracker_req().left : 0
|
||||
, stats ? tracker_req().corrupt : 0
|
||||
, stats ? tracker_req().redundant: 0
|
||||
, tracker_req().num_want
|
||||
, tracker_req().key);
|
||||
url += str;
|
||||
|
Reference in New Issue
Block a user