mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Merge pull request #106 from fishpenguin/branch-0.5.1-yk
test_scheduler core dump Former-commit-id: b9419031d33561e16f3a19f6dbb2a102464ae553
This commit is contained in:
commit
90f0a4d733
@ -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_;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user