Commit 489220a5 authored by aligungr's avatar aligungr

UE SRA dev.

parent b44eeafd
...@@ -19,6 +19,7 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti) ...@@ -19,6 +19,7 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti)
int ueId = m_stiToUeId[sti]; int ueId = m_stiToUeId[sti];
auto &ctx = m_ueCtx[ueId]; auto &ctx = m_ueCtx[ueId];
ctx->addr = addr; ctx->addr = addr;
ctx->lastSeen = utils::CurrentTimeMillis();
} }
else else
{ {
...@@ -27,6 +28,7 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti) ...@@ -27,6 +28,7 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti)
auto ctx = std::make_unique<SraUeContext>(ueId); auto ctx = std::make_unique<SraUeContext>(ueId);
ctx->sti = sti; ctx->sti = sti;
ctx->addr = addr; ctx->addr = addr;
ctx->lastSeen = utils::CurrentTimeMillis();
m_ueCtx[ueId] = std::move(ctx); m_ueCtx[ueId] = std::move(ctx);
m_logger->debug("New UE signal detected, UE[%d]", ueId); m_logger->debug("New UE signal detected, UE[%d]", ueId);
......
...@@ -110,6 +110,7 @@ struct SraUeContext ...@@ -110,6 +110,7 @@ struct SraUeContext
const int ueId; const int ueId;
uint64_t sti{}; uint64_t sti{};
InetAddress addr{}; InetAddress addr{};
int64_t lastSeen{};
explicit SraUeContext(int ueId) : ueId(ueId) explicit SraUeContext(int ueId) : ueId(ueId)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment