entries in the cache */
size_t DNSDistPacketCache::expunge(size_t upTo)
{
- bool removed = 0;
+ size_t removed = 0;
const uint64_t size = getSize();
if (upTo >= size) {
BOOST_CHECK_EQUAL(rule.matches(&dq), true);
BOOST_CHECK_EQUAL(rule.getEntriesCount(), 1);
- /* remove all entries that have not been since 'now' + 1,
+ /* remove all entries that have not been updated since 'now' + 1,
so all of them */
expiredTime.tv_sec += 1;
rule.cleanup(expiredTime);
}
}
- /* in the unlikely event that the test took so long that entries did expire.. */
+ /* in the unlikely event that the test took so long that the entries did expire.. */
auto expired = PC.purgeExpired();
BOOST_CHECK_EQUAL(matches + expired, expected);