Commit 8b4ac5a4 authored by zhujiashun's avatar zhujiashun

minor change

parent e8226c48
......@@ -103,8 +103,8 @@ PrometheusMetricsDumper::ProcessLatencyRecorderSuffix(const butil::StringPiece&
butil::string_printf("_latency_%d", (int)bvar::FLAGS_bvar_latency_p3),
"_latency_999", "_latency_9999", "_max_latency"
};
std::string desc_str = desc.as_string();
CHECK(NPERCENTILES == arraysize(latency_names));
const std::string desc_str = desc.as_string();
butil::StringPiece metric_name(name);
for (int i = 0; i < NPERCENTILES; ++i) {
if (!metric_name.ends_with(latency_names[i])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment