Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Dorier
codes
Commits
ac0f130e
Commit
ac0f130e
authored
Jan 08, 2015
by
Jonathan Jenkins
Committed by
Misbah Mubarak
Feb 26, 2015
Browse files
typo in latency call, better err msg
parent
a26449d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
codes/codes.h
View file @
ac0f130e
...
...
@@ -40,7 +40,7 @@ static inline tw_stime codes_local_latency(tw_lp *lp)
int
r
=
g_tw_nRNG_per_lp
-
1
;
tw_stime
tmp
;
tmp
=
g_tw_lookahead
+
CODES_MIN_LATENCY
*
tmp
=
g_tw_lookahead
+
CODES_MIN_LATENCY
+
tw_rand_unif
(
&
lp
->
rng
[
r
])
*
CODES_LATENCY_RANGE
;
if
(
g_tw_synchronization_protocol
==
CONSERVATIVE
&&
...
...
@@ -48,7 +48,9 @@ static inline tw_stime codes_local_latency(tw_lp *lp)
tw_error
(
TW_LOC
,
"codes_local_latency produced a precision loss "
"sufficient to fail lookahead check (conservative mode) - "
"increase CODES_MIN_LATENCY/CODES_MAX_LATENCY)
\n
"
);
"increase CODES_MIN_LATENCY/CODES_MAX_LATENCY. "
"Now:%0.5le, lookahead:%0.5le, return:%0.5le
\n
"
,
tw_now
(
lp
),
g_tw_lookahead
,
tmp
);
return
(
tmp
);
}
...
...
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