mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
parent
29acf6a594
commit
25b6efc8e8
@ -61,7 +61,7 @@ class CollectInsertMetrics : CollectMetricsBase {
|
||||
if (n_ > 0) {
|
||||
auto total_time = TimeFromBegine();
|
||||
double avg_time = total_time / n_;
|
||||
for (int i = 0; i < n_; ++i) {
|
||||
for (size_t i = 0; i < n_; ++i) {
|
||||
Metrics::GetInstance().AddVectorsDurationHistogramOberve(avg_time);
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ class CollectQueryMetrics : CollectMetricsBase {
|
||||
~CollectQueryMetrics() {
|
||||
if (nq_ > 0) {
|
||||
auto total_time = TimeFromBegine();
|
||||
for (int i = 0; i < nq_; ++i) {
|
||||
for (size_t i = 0; i < nq_; ++i) {
|
||||
server::Metrics::GetInstance().QueryResponseSummaryObserve(total_time);
|
||||
}
|
||||
auto average_time = total_time / nq_;
|
||||
|
Loading…
Reference in New Issue
Block a user