tools/compare: print number of destination chunks

This commit is contained in:
Danny Robson 2019-04-26 10:27:44 +10:00
parent 394d5c95dc
commit effa2f6ec1

View File

@ -212,6 +212,7 @@ int main (int argc, char const **argv)
std::clog << "Hashing target\n";
emory::map target (cruft::mapped_file (argv[ARGS_TARGET]), p);
std::sort (target.elements.begin (), target.elements.end (), emory::chunk::digest_ordering {});
std::cout << "Found " << target.elements.size () << " chunks\n";
std::vector<emory::match<int>> found;