Consider negative elapsed time values in activity monitor due to multiple PHY threads. Fixes issue #111

master
Ismael Gomez 7 years ago
parent 92f1ef19bc
commit 45d78d33fb

@ -768,9 +768,9 @@ bool rrc::ue::is_timeout()
} }
if (deadline_str) { if (deadline_str) {
uint64_t deadline = deadline_s*1e6 + deadline_us; int64_t deadline = deadline_s*1e6 + deadline_us;
uint64_t elapsed = t[0].tv_sec*1e6 + t[0].tv_usec; int64_t elapsed = t[0].tv_sec*1e6 + t[0].tv_usec;
if (elapsed > deadline) { if (elapsed > deadline && elapsed > 0) {
parent->rrc_log->warning("User rnti=0x%x expired %s deadline: %d:%d>%d:%d us\n", parent->rrc_log->warning("User rnti=0x%x expired %s deadline: %d:%d>%d:%d us\n",
rnti, deadline_str, rnti, deadline_str,
t[0].tv_sec, t[0].tv_usec, t[0].tv_sec, t[0].tv_usec,

Loading…
Cancel
Save