qb_loop_timer_add expects the timeout to be in nanoseconds, but we were passing the value in milliseconds. Scale the timeout appropriately. Signed-off-by: Michael Chapman <mike@xxxxxxxxxxxxxxxxx> --- exec/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/main.c b/exec/main.c index 65b28c2..6c69ee5 100644 --- a/exec/main.c +++ b/exec/main.c @@ -824,7 +824,7 @@ static void timer_function_scheduler_timeout (void *data) timeout_data->max_tv_diff = timeout_data->totem_config->token_timeout * QB_TIME_NS_IN_MSEC * 0.8; qb_loop_timer_add (corosync_poll_handle, QB_LOOP_MED, - timeout_data->totem_config->token_timeout / 3, + timeout_data->totem_config->token_timeout * QB_TIME_NS_IN_MSEC / 3, timeout_data, timer_function_scheduler_timeout, &timeout_data->handle); -- 1.8.3.1 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss