This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new f8558b00 fixbug: there is a ',' before 'quantile=' when labels is 
empty (#2659)
f8558b00 is described below

commit f8558b008910711d46658f2a50d08a3b78e5cfc7
Author: renzhong zhang <107745...@qq.com>
AuthorDate: Mon Jun 10 14:15:58 2024 +0800

    fixbug: there is a ',' before 'quantile=' when labels is empty (#2659)
    
    Co-authored-by: Renzhong Zhang <renzhong...@gmail.com>
---
 src/bvar/multi_dimension_inl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bvar/multi_dimension_inl.h b/src/bvar/multi_dimension_inl.h
index 11b0bd5d..212f431b 100644
--- a/src/bvar/multi_dimension_inl.h
+++ b/src/bvar/multi_dimension_inl.h
@@ -372,7 +372,7 @@ void 
MultiDimension<T>::make_labels_kvpair_string(std::ostream& os,
         comma[0] = ',';
     }
     if (quantile > 0) {
-        os << ",quantile=\"" << quantile << "\"";
+        os << comma << "quantile=\"" << quantile << "\"";
     }
     os << "}";
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to