Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
480915e1
Commit
480915e1
authored
Jan 08, 2015
by
Jonathan Jenkins
Browse files
typo in latency call, better err msg
parent
19816c06
Changes
1
Hide whitespace changes
Inline
Side-by-side
codes/codes.h
View file @
480915e1
...
...
@@ -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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment