Merge branch 'main' of https://github.com/johnhays/dsgwdashboard
This commit is contained in:
commit
0b37237ce6
1 changed files with 2 additions and 2 deletions
4
index.js
4
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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue