Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-NRF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-NRF
Commits
50c3484d
Commit
50c3484d
authored
Jul 28, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix time to 2
parent
95b46c55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/nrf_app/nrf_profile.cpp
src/nrf_app/nrf_profile.cpp
+2
-2
No files found.
src/nrf_app/nrf_profile.cpp
View file @
50c3484d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment