提交 f32921f0 编写于 作者: F fishpenguin

test_scheduler core dump


Former-commit-id: 79208b55f7b016bde5100cc7474850160dc72503
上级 8b64aa7c
......@@ -5,6 +5,8 @@ Please mark all change in change log and use the ticket from JIRA.
# Milvus 0.5.1 (TODO)
## Bug
- \#104 - test_scheduler core dump
## Improvement
- \#64 - Improvement dump function in scheduler
- \#80 - Print version information into log during server start
......
......@@ -119,6 +119,9 @@ class Resource : public Node, public std::enable_shared_from_this<Resource> {
// TODO(wxyu): need double ?
inline uint64_t
TaskAvgCost() const {
if (total_task_ == 0) {
return 0;
}
return total_cost_ / total_task_;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册