Updated cpp reference data, improved polygon discovery

This commit is contained in:
Pedro Pinto committed 2020-10-08 14:08:58 -04:00
1 parent 0d4888111d
commit dcbd86c1f5
4 files changed
+188 -89

No files matched your search

+5 -4
View File
@@ -106,11 +106,11 @@ void find_polys(std::vector<std::string> const &args) {
DefinitionCollector def_collector;
PolygonFinder poly_finder(options);
observe_channel(args[1], {&poly_finder, &def_collector});
auto imap = def_collector.to_instrument_map();
for (auto const &[id,p] : poly_finder.result) {
std::cout << id << " -> "<< polygon_descriptor(p, imap) << std::endl;
}
for (size_t id = 1; id <= poly_finder.result.size(); id++)
std::cout << id << " -> "
<< polygon_descriptor(poly_finder.result[id], imap)
<< std::endl;
}
void validate_fifo(std::string const &pcap) {
@@ -317,5 +317,6 @@ std::string Spartan::help() {
str += fmt::format("\t{} <pcap>[.xz] ...\n", p.first);
return str;
}
} // namespace cmd
} // namespace bts