fix assert timeout_sec (#117)

This commit is contained in:
Chen Qin 2019-10-14 01:44:26 -07:00 committed by Jiaming Yuan
parent ed9328ceae
commit 8e2c201d23

View File

@ -219,7 +219,7 @@ void AllreduceBase::SetParam(const char *name, const char *val) {
} }
if (!strcmp(name, "rabit_timeout_sec")) { if (!strcmp(name, "rabit_timeout_sec")) {
timeout_sec = atoi(val); 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");
} }
} }
/*! /*!