Skip to content
Snippets Groups Projects
Commit f191c4f6 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

storage: 0-init size_diff

parent 1b2bc7b1
Branches
Tags
Loading
......@@ -283,7 +283,7 @@ Storage::expire(const InfoHash& id, time_point now)
});
std::vector<Sp<Value>> ret;
ret.reserve(std::distance(r, values.end()));
ssize_t size_diff {};
ssize_t size_diff {0};
std::for_each(r, values.end(), [&](const ValueStorage& v) {
size_diff -= v.data->size();
if (v.store_bucket)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment