未验证 提交 25b6efc8 编写于 作者: H Hanyang Ke 提交者: GitHub

fix warning (#1988)

Signed-off-by: Nkehycs <kehycs@foxmail.com>
上级 29acf6a5
......@@ -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_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册