kopia lustrzana https://gitlab.com/tomaszg/geostat
Fix geostat_cli output with -N
rodzic
fe16f07dd7
commit
8e15d95be6
|
@ -283,12 +283,12 @@ int main(int argc, char** argv) {
|
||||||
hmap.generate(heat_file, fcc, heat_stamp_size, (heat_exp == 1 ? "exp" : "soft"));
|
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 (!get_not_found) {
|
||||||
|
if (show_list) {
|
||||||
|
for (auto el : sorted_caches)
|
||||||
|
el.second->show();
|
||||||
|
}
|
||||||
|
|
||||||
if (show_minmax) {
|
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 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; });
|
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';
|
std::cout << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (show_list) {
|
||||||
|
for (auto el : cc)
|
||||||
|
el.show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue