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; }