Allow empty (default) consensus timeout.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2638 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Angus Salkeld 2009-12-08 07:48:53 +00:00
parent d891884c27
commit ec6e57dd42

View File

@ -559,7 +559,7 @@ int totem_config_validate (
goto parse_error;
}
if (totem_config->consensus_timeout <= 1.2 * totem_config->token_timeout) {
if (totem_config->consensus_timeout < 1.2 * totem_config->token_timeout) {
snprintf (local_error_reason, sizeof(local_error_reason),
"The consensus timeout parameter (%d ms) must be atleast 1.2 * token (%d ms).",
totem_config->consensus_timeout, (int) ((float)1.2 * totem_config->token_timeout));