Fix stats - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit e0161df4361701471430efb134e1f37906bd6226 DIR parent 83352fb988f55b3ea3fea53b984b8233f817d08e HTML Author: sin <sin@2f30.org> Date: Mon, 18 Feb 2019 13:22:07 +0000 Fix stats Diffstat: M dedup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -427,8 +427,6 @@ dedup(int fd, char *msg) blksize = chunk_blk(inp, n); csize = comp(inp, outp, blksize, comp_size(BLKSIZE)); - enthdr.st.actual_bytes += csize; - memcpy(bdescr.md, md, sizeof(bdescr)); bdescr.offset = enthdr.store_size; bdescr.size = csize; @@ -454,6 +452,7 @@ dedup(int fd, char *msg) cent->bdescr = bdescr; add_cent(cent); + enthdr.st.actual_bytes += bdescr.size; enthdr.st.cache_misses++; } else { ent->bdescr[ent->nblks++] = bdescr;