Commit 50c3484d authored by Niuhaiwen's avatar Niuhaiwen

fix time to 2

parent 95b46c55
...@@ -529,7 +529,7 @@ void nrf_profile::subscribe_heartbeat_timeout_nfregistration(uint64_t ms) { ...@@ -529,7 +529,7 @@ void nrf_profile::subscribe_heartbeat_timeout_nfregistration(uint64_t ms) {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void nrf_profile::subscribe_heartbeat_timeout_nfupdate(uint64_t ms) { void nrf_profile::subscribe_heartbeat_timeout_nfupdate(uint64_t ms) {
struct itimerspec its; struct itimerspec its;
its.it_value.tv_sec = HEART_BEAT_TIMER; // Second its.it_value.tv_sec = 2*HEART_BEAT_TIMER; // Second
its.it_value.tv_nsec = 0; // 100 * 1000 * 1000; //100ms its.it_value.tv_nsec = 0; // 100 * 1000 * 1000; //100ms
const uint64_t interval = const uint64_t interval =
its.it_value.tv_sec * 1000 + its.it_value.tv_sec * 1000 +
...@@ -538,7 +538,7 @@ void nrf_profile::subscribe_heartbeat_timeout_nfupdate(uint64_t ms) { ...@@ -538,7 +538,7 @@ void nrf_profile::subscribe_heartbeat_timeout_nfupdate(uint64_t ms) {
Logger::nrf_app().debug( Logger::nrf_app().debug(
"Subscribe to HeartbeatTimer expire event (after NF update): interval " "Subscribe to HeartbeatTimer expire event (after NF update): interval "
"%d, current time %ld", "%d, current time %ld",
HEART_BEAT_TIMER, ms); 2*HEART_BEAT_TIMER, ms);
if (first_update) { if (first_update) {
ms = ms + 2000; // Not a realtime NF: adding 2000ms interval between the ms = ms + 2000; // Not a realtime NF: adding 2000ms interval between the
......
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