From e35d0a0c235e73a1f5c94346dd6a26414d7b41a7 Mon Sep 17 00:00:00 2001 From: d33tah Date: Mon, 27 Jan 2014 00:44:16 +0000 Subject: [PATCH] Add a comment to explain numIncompleteHostsLessThan. --- scan_engine.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scan_engine.cc b/scan_engine.cc index f56bb3413..ba3aaab96 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -1896,6 +1896,9 @@ HostScanStats *UltraScanInfo::findHost(struct sockaddr_storage *ss) { return NULL; } +/* Check if incompleteHosts list contains less than n elements. This function + is here to replace numIncompleteHosts() < n, which would have to walk + through the entire list. */ bool UltraScanInfo::numIncompleteHostsLessThan(unsigned int n) { std::list::iterator hostI; unsigned int count;