summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-02-03 22:19:01 +0000
committerDave Hibberd <hibby@debian.org>2025-02-03 22:19:01 +0000
commit488e218d34eaea6d5930cb14fcb77187450fb9df (patch)
tree992a75adf3a43b2d30406354fe50b546ca9d064a /cMain.c
parent3efea8aa1044f8157c3ed4bdf03471feec934f9c (diff)
parent64d58d0c5a01551f8bfc52291986d1b8d681aca5 (diff)
Update upstream source from tag 'upstream/6.0.24.59a+repack'
Update to upstream version '6.0.24.59a+repack' with Debian dir 618298da94ae61a579ac668b172d2edb43c7666b
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c13
1 files changed, 9 insertions, 4 deletions
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 <fcntl.h>
#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;