Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
4611f503
Commit
4611f503
authored
Nov 07, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[t24_fix]: lib/net.c: in linearize function normalize only phase, fix of previous linearize fix
parent
db364492
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
net.c
lib/net.c
+1
-10
No files found.
lib/net.c
View file @
4611f503
...
...
@@ -169,18 +169,9 @@ void ptpd_netif_linearize_rx_timestamp(wr_timestamp_t * ts, int32_t dmtd_phase,
ts
->
phase
=
phase
-
transition_point
;
/* normalize
timestamp
after subtraction */
/* normalize
phase
after subtraction */
if
(
ts
->
phase
<
0
)
{
ts
->
phase
+=
clock_period
;
ts
->
nsec
-=
clock_period
/
1000
;
}
if
(
ts
->
nsec
<
0
)
{
ts
->
nsec
+=
1000000000
;
ts
->
sec
--
;
}
}
/* Slow, but we don't care much... */
...
...
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