From 74ec0969a8e390fcefb0b7b8414752fd3a49bb26 Mon Sep 17 00:00:00 2001 From: John Hays Date: Fri, 19 Jan 2024 08:58:06 -0800 Subject: [PATCH] Reversed Lastheard Order --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4d44d63..0c71092 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ io.on('connection', (socket) => { }); fs.watch(headers, (curr, prev)=>{ - senddata("lastheard",buf.toarray(),io); + senddata("lastheard",buf.toarray().reverse(),io); }); fs.watch(links, (curr, prev)=>{ @@ -130,7 +130,7 @@ const tailheaders = new Tail(headers, {startPos : 'end'}, line => { 'urcall':groups[4].trim(),'rpt1':groups[5].trim(),'rpt2':groups[6].trim(), 'srcip':ipport[0],'srcport':ipport[1]}; buf.push(record); - senddata("lastheard",buf.toarray(),io); + senddata("lastheard",buf.toarray().reverse(),io); } });