Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sdptr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
sdptr
Commits
57d8b201
Commit
57d8b201
authored
Sep 30, 2021
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
L2SDP-499
, add err message if seconds missed.
parent
5c8efee4
No related branches found
No related tags found
1 merge request
!28
Resolve L2SDP-489
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sdptr.cpp
+3
-0
3 additions, 0 deletions
src/sdptr.cpp
with
3 additions
and
0 deletions
src/sdptr.cpp
+
3
−
0
View file @
57d8b201
...
...
@@ -87,6 +87,9 @@ void monitor()
// this means that SD.uptime will reflect the number of seconds
// this process was actually running, and now - SD.start_time
// reflects the wall-clock time that passed since start.
time_t
missed
=
current_time_timespec
.
tv_sec
-
SD
.
t0
.
tv_sec
;
SD
.
uptime
+=
(
uint32_t
)
missed
;
cerr
<<
"!!!!! MONITOR THREAD: Missed "
<<
missed
<<
" seconds !!!!!"
<<
endl
;
SD
.
t0
.
tv_sec
=
current_time_timespec
.
tv_sec
+
SD
.
timetick
;
}
SD
.
t0
.
tv_nsec
=
10000000L
;
// 0..999999999 // offset 10ms in a new second
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment