Commit 82273252 authored by Niuhaiwen's avatar Niuhaiwen

set heart-timer to 1

parent b0f9b6ba
...@@ -99,7 +99,7 @@ udr_app::udr_app() ...@@ -99,7 +99,7 @@ udr_app::udr_app()
register_to_nrf(); register_to_nrf();
} }
timer_id_t tid = itti_inst->timer_setup(20, 0, TASK_UDR_APP, TASK_UDR_APP_PERIODIC_GETINFO, 0); timer_id_t tid = itti_inst->timer_setup(20, 0, TASK_UDR_APP, TASK_UDR_APP_PERIODIC_GETINFO, 0);
timer_nrf_heartbeat = itti_inst->timer_setup(10, 0, TASK_UDR_APP, TASK_UDR_APP_TIMEOUT_NRF_HEARTBEAT, 0); timer_nrf_heartbeat = itti_inst->timer_setup(1, 0, TASK_UDR_APP, TASK_UDR_APP_TIMEOUT_NRF_HEARTBEAT, 0);
Logger::udr_app().startup("Started"); Logger::udr_app().startup("Started");
} }
void udr_app::register_to_nrf(){ void udr_app::register_to_nrf(){
...@@ -115,7 +115,7 @@ void udr_app::generate_udr_profile(){ ...@@ -115,7 +115,7 @@ void udr_app::generate_udr_profile(){
nf_instance_profile.set_nf_instance_name("bupt-udr"); nf_instance_profile.set_nf_instance_name("bupt-udr");
nf_instance_profile.set_nf_type("UDR"); nf_instance_profile.set_nf_type("UDR");
nf_instance_profile.set_nf_status("REGISTERED"); nf_instance_profile.set_nf_status("REGISTERED");
nf_instance_profile.set_nf_heartBeat_timer(10); nf_instance_profile.set_nf_heartBeat_timer(1);
nf_instance_profile.set_nf_priority(1); nf_instance_profile.set_nf_priority(1);
nf_instance_profile.set_nf_capacity(100); nf_instance_profile.set_nf_capacity(100);
struct in_addr IP; struct in_addr IP;
......
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