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

tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 20186941 Fix format output in Server::GetRocksDBStatsJson (#1142)
20186941 is described below

commit 20186941f0fe1d53f4d395d41802fda5e564ac4c
Author: Twice <[email protected]>
AuthorDate: Fri Nov 25 22:18:16 2022 +0800

    Fix format output in Server::GetRocksDBStatsJson (#1142)
---
 src/server/server.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/server/server.cc b/src/server/server.cc
index 3944530e..1e4913c0 100644
--- a/src/server/server.cc
+++ b/src/server/server.cc
@@ -1069,9 +1069,8 @@ std::string Server::GetRocksDBStatsJson() {
     rocksdb::HistogramData hist_data;
     stats->histogramData(iter.first, &hist_data);
     /* P50 P95 P99 P100 COUNT SUM */
-    output.append(fmt::format(R"("{}":[{},{},{},{},{},{}])", 
iter.second.c_str(), hist_data.median,
-                              hist_data.percentile95, hist_data.percentile99, 
hist_data.max, hist_data.count,
-                              hist_data.sum));
+    output.append(fmt::format(R"("{}":[{},{},{},{},{},{}],)", iter.second, 
hist_data.median, hist_data.percentile95,
+                              hist_data.percentile99, hist_data.max, 
hist_data.count, hist_data.sum));
   }
   output.pop_back();
   output.append("}");

Reply via email to