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
chuck cranor
margo
Commits
b7c260d0
Commit
b7c260d0
authored
Mar 30, 2016
by
Philip Carns
Browse files
bug fix
parent
53fde9ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/margo.c
View file @
b7c260d0
...
...
@@ -11,6 +11,7 @@
#include <abt.h>
#include <abt-snoozer.h>
#include <time.h>
#include <math.h>
#include "margo.h"
#include "utlist.h"
...
...
@@ -260,7 +261,7 @@ hg_return_t margo_forward_timed(
el
.
handle
=
handle
;
clock_gettime
(
clk_id
,
&
el
.
expiration
);
el
.
expiration
.
tv_sec
+=
timeout_ms
/
1000
;
el
.
expiration
.
tv_nsec
+=
(
timeout_ms
-
(
timeout_ms
/
1000
)
)
*
1000
.
0
*
1000
.
0
;
el
.
expiration
.
tv_nsec
+=
fmod
(
timeout_ms
,
1000
)
*
1000
.
0
*
1000
.
0
;
if
(
el
.
expiration
.
tv_nsec
>
1000000000
)
{
el
.
expiration
.
tv_nsec
-=
1000000000
;
...
...
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