commit e0161df4361701471430efb134e1f37906bd6226
parent 83352fb988f55b3ea3fea53b984b8233f817d08e
Author: sin <sin@2f30.org>
Date: Mon, 18 Feb 2019 13:22:07 +0000
Fix stats
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
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;