diff --git a/src/cluster.c b/src/cluster.c
index 7ae34ebe..55863ad8 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -748,7 +748,7 @@ void markNodeAsFailingIfNeeded(clusterNode *node) {
  * to reach it again. It checks if there are the conditions to undo the FAIL
  * state. */
 void clearNodeFailureIfNeeded(clusterNode *node) {
-    time_t now = mstime();
+    mstime_t now = mstime();
 
     redisAssert(node->flags & REDIS_NODE_FAIL);