This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new c318c48a389 [fix](compile) fix implicit float-to-int conversion in mem_info calculation (#33311) c318c48a389 is described below commit c318c48a3895e78523ceb600453ee9271d80b373 Author: zy-kkk <zhongy...@gmail.com> AuthorDate: Mon Apr 8 07:33:46 2024 +0800 [fix](compile) fix implicit float-to-int conversion in mem_info calculation (#33311) --- be/src/util/mem_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/util/mem_info.cpp b/be/src/util/mem_info.cpp index a5ca3b70f1b..17abbb8e93e 100644 --- a/be/src/util/mem_info.cpp +++ b/be/src/util/mem_info.cpp @@ -514,7 +514,7 @@ void MemInfo::init() { bool is_percent = true; _s_mem_limit = ParseUtil::parse_mem_spec(config::mem_limit, -1, _s_physical_mem, &is_percent); _s_mem_limit_str = PrettyPrinter::print(_s_mem_limit, TUnit::BYTES); - _s_soft_mem_limit = _s_mem_limit * config::soft_mem_limit_frac; + _s_soft_mem_limit = static_cast<int64_t>(_s_mem_limit * config::soft_mem_limit_frac); _s_soft_mem_limit_str = PrettyPrinter::print(_s_soft_mem_limit, TUnit::BYTES); LOG(INFO) << "Physical Memory: " << PrettyPrinter::print(_s_physical_mem, TUnit::BYTES); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org