Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
779604a6
Commit
779604a6
authored
Jul 09, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ptpd standard algorithm constants tuning
parent
6287bb7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
constants.h
include/ppsi/constants.h
+4
-4
servo.c
proto-standard/servo.c
+1
-1
No files found.
include/ppsi/constants.h
View file @
779604a6
...
...
@@ -18,16 +18,16 @@
#define PP_DEFAULT_DOMAIN_NUMBER 0
#define PP_DEFAULT_DELAY_MECHANISM P2P
#define PP_DEFAULT_AP 10
#define PP_DEFAULT_AI
100
0
#define PP_DEFAULT_AI
25
0
#define PP_DEFAULT_DELAY_S 6
#define PP_DEFAULT_ANNOUNCE_INTERVAL
1
/* 0 in 802.1AS */
#define PP_DEFAULT_ANNOUNCE_INTERVAL
3
/* 0 in 802.1AS */
#define PP_DEFAULT_UTC_OFFSET 0
#define PP_DEFAULT_UTC_VALID 0
#define PP_DEFAULT_PDELAYREQ_INTERVAL 1
/* -4 in 802.1AS */
#define PP_DEFAULT_DELAYREQ_INTERVAL 3
#define PP_DEFAULT_SYNC_INTERVAL
0
/* -7 in 802.1AS */
#define PP_DEFAULT_SYNC_INTERVAL
1
/* -7 in 802.1AS */
#define PP_DEFAULT_SYNC_RECEIPT_TIMEOUT 3
#define PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT
6
/* 3 by default */
#define PP_DEFAULT_ANNOUNCE_RECEIPT_TIMEOUT
3
/* 3 by default */
#define PP_DEFAULT_QUALIFICATION_TIMEOUT 2
#define PP_DEFAULT_FOREIGN_MASTER_TIME_WINDOW 4
#define PP_DEFAULT_FOREIGN_MASTER_THRESHOLD 2
...
...
proto-standard/servo.c
View file @
779604a6
...
...
@@ -313,7 +313,7 @@ void pp_update_clock(struct pp_instance *ppi)
pp_adj_freq
(
-
adj
);
dc
++
;
if
(
dc
%
8
==
0
)
{
/* Prints statistics every 8s */
if
(
dc
%
2
==
0
)
{
/* Prints statistics every 8s */
PP_PRINTF
(
"ofst %d, raw ofst %d, mean-dly %d, adj %d
\n
"
,
DSCUR
(
ppi
)
->
offsetFromMaster
.
nanoseconds
,
SRV
(
ppi
)
->
m_to_s_dly
.
nanoseconds
,
...
...
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