From 89301d64f7bada510eabfce999700030c744eff7 Mon Sep 17 00:00:00 2001 From: Bright Chen Date: Sat, 13 Apr 2024 23:04:03 +0800 Subject: [PATCH] Fix IOBuf profiler rate --- src/butil/iobuf_profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/butil/iobuf_profiler.cpp b/src/butil/iobuf_profiler.cpp index bcb5339130..15356955a6 100644 --- a/src/butil/iobuf_profiler.cpp +++ b/src/butil/iobuf_profiler.cpp @@ -47,7 +47,7 @@ static uint g_iobuf_profiler_sample_rate = 100; static void InitGlobalIOBufProfilerInfo() { const char* enabled = getenv("ENABLE_IOBUF_PROFILER"); g_iobuf_profiler_enabled = enabled && strcmp("1", enabled) == 0 && ::GetStackTrace != NULL; - if (g_iobuf_profiler_enabled) { + if (!g_iobuf_profiler_enabled) { return; }