From ac03764b36d92822a79f846ab6d73fd9f6cb0afd Mon Sep 17 00:00:00 2001 From: Evert Date: Wed, 28 Sep 2016 22:59:51 +0300 Subject: [PATCH] fml --- teemant.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teemant.js b/teemant.js index 3b5530b..9416ec8 100755 --- a/teemant.js +++ b/teemant.js @@ -40,11 +40,11 @@ function printRuntimeStats() { let serversPerUser = 0; for(let uid in connections) { - let c = connections[uid]; + let ca = connections[uid]; users += 1; - for(let snam in c) { + for(let snam in ca) { + if(!snam) continue; if(snam == "host") continue; - let snam = c[snam]; servers += 1; } } @@ -52,7 +52,7 @@ function printRuntimeStats() { if(servers != 0) 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() {