mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
for statistic, CLOSED may only counts when the closing reason has value in it
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
0b729440a8
commit
14fe204fb7
@ -397,8 +397,10 @@ function newConn(addr, id, reconn_t = 0) {
|
||||
|
||||
if (log_about_relays) console.log(process.pid, id, addr, data[0], data[1], data[2]);
|
||||
|
||||
stats._global.f++
|
||||
stats[addr].f++
|
||||
if (data[2].length) {
|
||||
stats._global.f++;
|
||||
stats[addr].f++;
|
||||
}
|
||||
if (client.pendingEOSE.has(data[1])) client.pendingEOSE.set(data[1], client.pendingEOSE.get(data[1]) + 1);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user