Skip to content

Commit bbd88a8

Browse files
authored
Fix IOBuf profiler rate (#2601)
1 parent d7eca39 commit bbd88a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/butil/iobuf_profiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static uint g_iobuf_profiler_sample_rate = 100;
4747
static void InitGlobalIOBufProfilerInfo() {
4848
const char* enabled = getenv("ENABLE_IOBUF_PROFILER");
4949
g_iobuf_profiler_enabled = enabled && strcmp("1", enabled) == 0 && ::GetStackTrace != NULL;
50-
if (g_iobuf_profiler_enabled) {
50+
if (!g_iobuf_profiler_enabled) {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)