diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-03-22 00:22:09 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:32:17 +0100 |
| commit | bdf8a8367e79e6224f8078b5d1bb9b6ad8584079 (patch) | |
| tree | 6e93cb599e2763d711a3e159fc186a767f8e6c3f /Events.c | |
| parent | f0ac0675f6ceff1a0b4223e6ea6b703c657d282f (diff) | |
New upstream version 6.0.24.67+repack
Diffstat (limited to 'Events.c')
| -rw-r--r-- | Events.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)
|
