Commit b7c260d0 authored by Philip Carns's avatar Philip Carns

bug fix

parent 53fde9ad
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment