From bdf8a8367e79e6224f8078b5d1bb9b6ad8584079 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 22 Mar 2025 00:22:09 +0000 Subject: New upstream version 6.0.24.67+repack --- Events.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Events.c') diff --git a/Events.c b/Events.c index 6d5f618..fdbb96b 100644 --- a/Events.c +++ b/Events.c @@ -168,6 +168,12 @@ void hookL2SessionDeleted(struct _LINKTABLE * LINK) LINK->ConnectTime = 0; } + + if (LINK->Sent && LINK->Received && (LINK->SentAfterCompression || LINK->ReceivedAfterExpansion)) + Debugprintf("L2 Compression Stats %s %s TX %d %d %d%% RX %d %d %d%%", LINK->callingCall, LINK->receivingCall, + LINK->Sent, LINK->SentAfterCompression, ((LINK->Sent - LINK->SentAfterCompression) * 100) / LINK->Sent, + LINK->Received, LINK->ReceivedAfterExpansion, ((LINK->ReceivedAfterExpansion - LINK->Received) * 100) / LINK->Received); + } void hookL2SessionAttempt(int Port, char * ourcall, char * remotecall, struct _LINKTABLE * LINK) -- cgit v1.2.3