From 64d58d0c5a01551f8bfc52291986d1b8d681aca5 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 3 Feb 2025 22:18:58 +0000 Subject: New upstream version 6.0.24.59a+repack --- cMain.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'cMain.c') diff --git a/cMain.c b/cMain.c index 7cf47d0..ea68401 100644 --- a/cMain.c +++ b/cMain.c @@ -34,7 +34,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses #include #include "kernelresource.h" -#include "CHeaders.h" +#include "cheaders.h" #include "tncinfo.h" #include "mqtt.h" @@ -2468,7 +2468,7 @@ VOID DoListenMonitor(TRANSPORTENTRY * L4, MESSAGE * Msg) PDATAMESSAGE Buffer; char MonBuffer[1024]; int len; - + struct tm * TM; UCHAR * monchars = (UCHAR *)Msg; if (CountFramesQueuedOnSession(L4) > 10) @@ -2478,14 +2478,19 @@ VOID DoListenMonitor(TRANSPORTENTRY * L4, MESSAGE * Msg) return; IntSetTraceOptionsEx(L4->LISTEN, 1, 0, 0); - - len = IntDecodeFrame(Msg, MonBuffer, Msg->Timestamp, L4->LISTEN, FALSE, TRUE); + + TM = gmtime(&Msg->Timestamp); + sprintf(MonBuffer, "%02d:%02d:%02d ", TM->tm_hour, TM->tm_min, TM->tm_sec); + + len = IntDecodeFrame(Msg, &MonBuffer[9], Msg->Timestamp, L4->LISTEN, FALSE, TRUE); IntSetTraceOptionsEx(SaveMMASK, SaveMTX, SaveMCOM, SaveMUI); if (len == 0) return; + len += 9; + if (len > 256) len = 256; -- cgit v1.2.3