Skip to content

Commit

Permalink
Fix IOBuf profiler rate (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenBright committed Apr 22, 2024
1 parent d7eca39 commit bbd88a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/butil/iobuf_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bbd88a8

Please sign in to comment.