Fix qlog decimation

pull/1093/head
Willem Melching 5 years ago
parent 89eebd79fb
commit 2f33e1e0b0
  1. 5
      selfdrive/loggerd/loggerd.cc

@ -588,7 +588,6 @@ int main(int argc, char** argv) {
for (const auto& it : services) {
std::string name = it.name;
int qlog_freq = it.decimation ? it.decimation : 0;
if (it.should_log) {
SubSocket * sock = SubSocket::create(s.ctx, name);
@ -601,8 +600,8 @@ int main(int argc, char** argv) {
frame_sock = sock;
}
qlog_counter[sock] = (qlog_freq == 0) ? -1 : 0;
qlog_freqs[sock] = qlog_freq;
qlog_counter[sock] = (it.decimation == -1) ? -1 : 0;
qlog_freqs[sock] = it.decimation;
}
}

Loading…
Cancel
Save