Skip to content

Commit a48878c

Browse files
committed
fix: incorrect l7 metrics
1 parent 81af270 commit a48878c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

agent/src/common/l7_protocol_log.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ impl LogCache {
352352
pub fn is_request_of(&self, other: &Self) -> bool {
353353
self.msg_type == LogMessageType::Request
354354
&& other.msg_type == LogMessageType::Response
355-
&& self.time < other.time
355+
&& self.time <= other.time
356356
}
357357

358358
pub fn is_response_of(&self, other: &Self) -> bool {
359359
self.msg_type == LogMessageType::Response
360360
&& other.msg_type == LogMessageType::Request
361-
&& self.time > other.time
361+
&& self.time >= other.time
362362
}
363363
}
364364

0 commit comments

Comments
 (0)