usnic: fix connectivity checker timeout
Fix mismatch between the MCA param (which expresses the timeout in *mili*seconds) and the struct timeval timeout (which expresses the timeout in *micro*seconds). Reviewed by Dave Goodell cmr=v1.8.2:reviewer=ompi-rm1.8 This commit was SVN r31687.
Этот коммит содержится в:
родитель
ab4f8585b0
Коммит
a61e4d6425
@ -932,11 +932,13 @@ int ompi_btl_usnic_connectivity_agent_init(void)
|
||||
/* Create the event base */
|
||||
evbase = opal_event_base_create();
|
||||
|
||||
/* Make a struct timeval for use with timer events */
|
||||
/* Make a struct timeval for use with timer events. Note that the
|
||||
MCA param is expressed in terms of *milli*seconds, but the
|
||||
timeval timeout is expressed in terms of *micro*seconds. */
|
||||
ack_timeout.tv_sec =
|
||||
mca_btl_usnic_component.connectivity_ack_timeout / 1000;
|
||||
ack_timeout.tv_usec = mca_btl_usnic_component.connectivity_ack_timeout;
|
||||
ack_timeout.tv_usec -= ack_timeout.tv_sec * 1000;
|
||||
ack_timeout.tv_usec =
|
||||
1000 * (mca_btl_usnic_component.connectivity_ack_timeout % 1000);
|
||||
|
||||
/* Create lists */
|
||||
OBJ_CONSTRUCT(&listeners, opal_list_t);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user