Show number of caches in html output if "not found" is enabled

sql-rework
Tomasz Goliński 2019-11-11 21:10:58 +01:00
rodzic f8b78acaca
commit ab283c8672
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -285,6 +285,12 @@ int main(int argc, char** argv) {
std::cout << "</div>\n";
}
if (show_html && get_not_found) {
std::cout << "<div class=\"basic_stats\">\n";
std::cout << "Still " << cc.size() << "caches to be found...<br>\n";
std::cout << "</div>\n";
}
if ((show_minmax || show_html) && !get_not_found) {
auto N = std::max_element(cc.begin(), cc.end(), [&](const Cache& a, const Cache& b) { return a.pos.lat < b.pos.lat; });
auto S = std::min_element(cc.begin(), cc.end(), [&](const Cache& a, const Cache& b) { return a.pos.lat < b.pos.lat; });