This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new bbd88a8a Fix IOBuf profiler rate (#2601)
bbd88a8a is described below

commit bbd88a8afdc40d952d9279dcddde1e32482e85b1
Author: Bright Chen <chenguangmin...@foxmail.com>
AuthorDate: Mon Apr 22 09:38:40 2024 +0800

    Fix IOBuf profiler rate (#2601)
---
 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 bcb53391..15356955 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;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to