Fix geostat_cli output with -N

sql-rework
Tomasz Golinski 2020-03-29 19:03:48 +02:00
rodzic fe16f07dd7
commit 8e15d95be6
1 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -283,12 +283,12 @@ int main(int argc, char** argv) {
hmap.generate(heat_file, fcc, heat_stamp_size, (heat_exp == 1 ? "exp" : "soft"));
}
if (show_list) {
for (auto el : sorted_caches)
el.second->show();
}
if (!get_not_found) {
if (show_list) {
for (auto el : sorted_caches)
el.second->show();
}
if (show_minmax) {
auto N = *std::max_element(fcc.begin(), fcc.end(), [&](const Cache* a, const Cache* b) { return a->pos.lat < b->pos.lat; });
auto S = *std::min_element(fcc.begin(), fcc.end(), [&](const Cache* a, const Cache* b) { return a->pos.lat < b->pos.lat; });
@ -350,5 +350,10 @@ int main(int argc, char** argv) {
std::cout << '\n';
}
}
} else {
if (show_list) {
for (auto el : cc)
el.show();
}
}
}