From 9bf199a4770b08c03d553129757d960b605e598a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 14 五月 2021 18:05:21 +0800 Subject: [PATCH] add center info at fixed address in shm. --- box/center.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/box/center.cpp b/box/center.cpp index 445d307..7d51f2f 100644 --- a/box/center.cpp +++ b/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; -- Gitblit v1.8.0