tSave amount of bytes downloaded - libeech - bittorrent library
 (HTM) git clone git://z3bra.org/libeech.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit be01a156aeef06d1f908824f63aa8339dd91992b
 (DIR) parent 75028910f9e794ced6d97bb31f977a808e0b72e1
 (HTM) Author: z3bra <contactatz3bradotorg>
       Date:   Fri,  6 Jul 2018 15:29:13 +0200
       
       Save amount of bytes downloaded
       
       Diffstat:
         M libeech.c                           |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/libeech.c b/libeech.c
       t@@ -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;
        }