Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
3759e37a
Commit
3759e37a
authored
Nov 24, 2014
by
Jeroen Vreeken
Browse files
Make sure to use enough bits for nsec value
parent
c9abd663
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/controller/controller_sample.c
View file @
3759e37a
...
...
@@ -347,8 +347,8 @@ static void *sample_thread(void *arg)
t
.
tv_nsec
+=
nsec_interval
;
tsnorm
(
&
t
);
controller_time_nseconds
=
t
.
tv_sec
*
1000000000
;
controller_time_nseconds
=
(
uint64_t
)
t
.
tv_sec
*
1000000000
;
controller_time_nseconds
+=
t
.
tv_nsec
;
controller_time_seconds
=
t
.
tv_sec
;
controller_time_samplenr
=
t
.
tv_nsec
/
nsec_interval
;
...
...
Write
Preview
Supports
Markdown
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