util/disk_cache: fix compressed size calculation
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 9 Mar 2017 00:54:52 +0000 (02:54 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 9 Mar 2017 09:26:23 +0000 (20:26 +1100)
commit926bcacfd3f9025007455c026d44f810018cf787
treed08a36a686f7aa0cebe16dcf8785f10c02b2493e
parentf81ede469910d80ef000f313e3388d65a6bd0afd
util/disk_cache: fix compressed size calculation

It incorrectly doubles the size on each iteration.

Fixes: 85a9b1b5 "util/disk_cache: compress individual cache entries"
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/util/disk_cache.c