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

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


The following commit(s) were added to refs/heads/master by this push:
     new a2ff4aeac3 Fix wrong variable in eventloop events max metric (#13488)
a2ff4aeac3 is described below

commit a2ff4aeac3079eb921037fda947d4b6088a2c113
Author: Mo Chen <[email protected]>
AuthorDate: Tue Aug 4 14:00:26 2026 -0500

    Fix wrong variable in eventloop events max metric (#13488)
    
    Slice::record_event_count() assigned the loop-execution count instead of
    the event count, so proxy.process.eventloop.events.max.* has always
    reported how many loops ran rather than the largest number of events
    dispatched in a single loop.
---
 include/iocore/eventsystem/EThread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/iocore/eventsystem/EThread.h 
b/include/iocore/eventsystem/EThread.h
index ff3b0e0933..4c3bf1e730 100644
--- a/include/iocore/eventsystem/EThread.h
+++ b/include/iocore/eventsystem/EThread.h
@@ -613,7 +613,7 @@ EThread::Metrics::Slice::record_event_count(int count) -> 
self_type &
     _events._min = count;
   }
   if (count > _events._max) {
-    _events._max = _count;
+    _events._max = count;
   }
   _events._total += count;
   return *this;

Reply via email to