add participation and log spam fix

This commit is contained in:
Green Sky
2024-12-11 23:23:05 +01:00
parent 100279a483
commit eb169b2779
3 changed files with 14 additions and 8 deletions

View File

@ -8,7 +8,7 @@
// perform binary search to find the first message not newer than ts_start
template<typename View>
auto find_start_by_ts(const View& view, uint64_t ts_start) {
std::cout << "!!!! starting msg ts search, ts_start:" << ts_start << "\n";
//std::cout << "!!!! starting msg ts search, ts_start:" << ts_start << "\n";
// -> first value smaller than start ts
auto res = std::lower_bound(
@ -22,9 +22,9 @@ auto find_start_by_ts(const View& view, uint64_t ts_start) {
if (res != view.end()) {
const auto& [ts_comp] = view.get(*res);
std::cout << "!!!! first value not newer than start ts is " << ts_comp.ts << "\n";
//std::cout << "!!!! first value not newer than start ts is " << ts_comp.ts << "\n";
} else {
std::cout << "!!!! no first value not newer than start ts\n";
//std::cout << "!!!! no first value not newer than start ts\n";
}
return res;
}