[sheepdog] [PATCH v2] sheep/cluster: fix error in sheep log

Bingpeng Zhu nkuzbp at foxmail.com
Wed Aug 6 05:47:39 CEST 2014


zk_timeout is measured in milliseconds, so
it should be divided by 1000 to seconds.

Signed-off-by: Bingpeng Zhu <bingpeng.zbp at alibaba-inc.com>
---
 sheep/cluster/zookeeper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c
index 5c181e1..fea8258 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -971,7 +971,7 @@ static int zk_join(const struct sd_node *myself,
 	rc = zk_node_exists(path);
 	if (rc == ZOK) {
 		sd_err("Previous zookeeper session exist, shoot myself. Please "
-		       "wait for %d seconds to join me again.", zk_timeout);
+			"wait for %d seconds to join me again.", zk_timeout / 1000);
 		exit(1);
 	}
 
-- 
1.7.1





More information about the sheepdog mailing list