Skip to content

Commit

Permalink
Fixed totalUsers being undefined thus not being displayed. (#6342)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 authored Apr 18, 2024
1 parent 950ed74 commit e2233b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/handler/PadMessageHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit e2233b6

Please sign in to comment.