fml
This commit is contained in:
parent
10abaa5706
commit
ac03764b36
@ -40,11 +40,11 @@ function printRuntimeStats() {
|
|||||||
let serversPerUser = 0;
|
let serversPerUser = 0;
|
||||||
|
|
||||||
for(let uid in connections) {
|
for(let uid in connections) {
|
||||||
let c = connections[uid];
|
let ca = connections[uid];
|
||||||
users += 1;
|
users += 1;
|
||||||
for(let snam in c) {
|
for(let snam in ca) {
|
||||||
|
if(!snam) continue;
|
||||||
if(snam == "host") continue;
|
if(snam == "host") continue;
|
||||||
let snam = c[snam];
|
|
||||||
servers += 1;
|
servers += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ function printRuntimeStats() {
|
|||||||
if(servers != 0)
|
if(servers != 0)
|
||||||
serversPerUser = users/servers;
|
serversPerUser = users/servers;
|
||||||
|
|
||||||
console.log(""+date+": Currently connected users: "+users+"; IRC server connections: "+servers+"; Average servers per user: "+serversPerUser);
|
console.log(date+": Currently connected users: "+users+"; IRC server connections: "+servers+"; Average servers per user: "+serversPerUser+"; Total connections made: "+runtime_stats.connectionsMade);
|
||||||
}
|
}
|
||||||
|
|
||||||
let io = sockio.listen(app.listen(port, function() {
|
let io = sockio.listen(app.listen(port, function() {
|
||||||
|
Reference in New Issue
Block a user