From 8e2c201d2333a0346ccb6fc87f6fa2bec512d293 Mon Sep 17 00:00:00 2001 From: Chen Qin Date: Mon, 14 Oct 2019 01:44:26 -0700 Subject: [PATCH] fix assert timeout_sec (#117) --- src/allreduce_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allreduce_base.cc b/src/allreduce_base.cc index 0b8f29906..afbb9be1f 100644 --- a/src/allreduce_base.cc +++ b/src/allreduce_base.cc @@ -219,7 +219,7 @@ void AllreduceBase::SetParam(const char *name, const char *val) { } if (!strcmp(name, "rabit_timeout_sec")) { timeout_sec = atoi(val); - utils::Assert(rabit_timeout > 0, "rabit_timeout_sec should be greater than 0 second"); + utils::Assert(timeout_sec > 0, "rabit_timeout_sec should be greater than 0 second"); } } /*!