git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5477
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
TRY{
if (period - now + begin > 0)
gras_msg_handle(period - now + begin);
TRY{
if (period - now + begin > 0)
gras_msg_handle(period - now + begin);
xbt_ex_free(e);
}
/* Epsilon to avoid numerical stability issues were the waited interval is so small that the global clock cannot notice the increment */
xbt_ex_free(e);
}
/* Epsilon to avoid numerical stability issues were the waited interval is so small that the global clock cannot notice the increment */
- } while (now - begin < period - 0.000001);
+ } while (period - now + begin > 0);
}
/** @brief Handle an incomming message or timer (or wait up to \a timeOut seconds)
}
/** @brief Handle an incomming message or timer (or wait up to \a timeOut seconds)