libeech

BitTorrent library
git clone git://z3bra.org/libeech.git
Log | Files | Refs | README | LICENSE

commit be01a156aeef06d1f908824f63aa8339dd91992b
parent 75028910f9e794ced6d97bb31f977a808e0b72e1
Author: z3bra <contactatz3bradotorg>
Date:   Fri Jul  6 15:29:13 +0200

Save amount of bytes downloaded

Diffstat:
libeech.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/libeech.c b/libeech.c @@ -740,6 +740,9 @@ pwprxpc(struct torrent *t, struct peer *p, size_t sz, char *pl) p->piece.n = -1; } + /* Save amount of bytes downloaded */ + t->sz += sz - 8; + return 0; }