diff --git a/exec/totemconfig.c b/exec/totemconfig.c index 03a84088..642efe4e 100644 --- a/exec/totemconfig.c +++ b/exec/totemconfig.c @@ -56,14 +56,14 @@ #define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4 #define TOKEN_TIMEOUT 1000 #define TOKEN_RETRANSMIT_TIMEOUT (int)(TOKEN_TIMEOUT / (TOKEN_RETRANSMITS_BEFORE_LOSS_CONST + 0.2)) -#define TOKEN_HOLD_TIMEOUT (int)(TOKEN_RETRANSMIT_TIMEOUT * 0.8 - (1000/HZ)) +#define TOKEN_HOLD_TIMEOUT (int)(TOKEN_RETRANSMIT_TIMEOUT * 0.8 - (1000/(int)HZ)) #define JOIN_TIMEOUT 100 #define CONSENSUS_TIMEOUT 200 #define MERGE_TIMEOUT 200 #define DOWNCHECK_TIMEOUT 1000 #define FAIL_TO_RECV_CONST 10 #define SEQNO_UNCHANGED_CONST 30 -#define MINIMUM_TIMEOUT (1000/HZ)*3 +#define MINIMUM_TIMEOUT (int)(1000/HZ)*3 static char error_string_response[512];