From a3654256960e58f0bde9151adc1fb13cec9c3d4c Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Sat, 18 Sep 2021 17:17:54 +0800 Subject: [PATCH] modify variant name --- src/query/src/tdigest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index 5479b9aeb9..67f8b7d27d 100644 --- a/src/query/src/tdigest.c +++ b/src/query/src/tdigest.c @@ -303,8 +303,8 @@ double tdigestQuantile(TDigest *t, double q) { void tdigestMerge(TDigest *t1, TDigest *t2) { // SPoints - int32_t num_SPoints = t2->num_buffered_pts; - for(int32_t i = num_SPoints - 1; i >= 0; i--) { + int32_t num_pts = t2->num_buffered_pts; + for(int32_t i = num_pts - 1; i >= 0; i--) { SPt* p = t2->buffered_pts + i; tdigestAdd(t1, p->value, p->weight); t2->num_buffered_pts --; -- GitLab