lichao
2021-05-14 9bf199a4770b08c03d553129757d960b605e598a
box/center.cpp
@@ -98,7 +98,7 @@
      if (now < time_to_clean_) {
         return;
      }
      LOG_FUNCTION;
      // LOG_FUNCTION;
      time_to_clean_ = now + 1;
      int64_t limit = std::max(10000ul, msgs_.size() / 10);
      int64_t n = 0;
@@ -109,7 +109,7 @@
            msg.Free();
            it = msgs_.erase(it);
            ++n;
         } else if (msg.timestamp() + 10 < NowSec()) {
         } else if (msg.timestamp() + 60 < NowSec()) {
            msg.Free();
            it = msgs_.erase(it);
            ++n;