Fixed totalUsers being undefined thus not being displayed. (#6342)
This commit is contained in:
parent
950ed74071
commit
e2233b61c9
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ exports.socketio = () => {
|
|||
const sessioninfos:MapArrayType<any> = {};
|
||||
exports.sessioninfos = sessioninfos;
|
||||
|
||||
stats.gauge('totalUsers', () => socketio ? socketio.sockets.size : 0);
|
||||
stats.gauge('totalUsers', () => socketio ? socketio.engine.clientsCount : 0);
|
||||
stats.gauge('activePads', () => {
|
||||
const padIds = new Set();
|
||||
for (const {padId} of Object.values(sessioninfos)) {
|
||||
|
|
Loading…
Reference in a new issue