Fix bug in cytube_sockets_num_connected metric

This commit is contained in:
Calvin Montgomery 2017-09-04 10:04:33 -07:00
parent 97231e515c
commit 3eb97bab6a
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ function emitMetrics(sock) {
sock.client.conn.on('upgrade', newTransport => {
try {
// Sanity check
if (newTransport !== transportName) {
if (newTransport.name !== transportName) {
promSocketCount.dec({ transport: transportName });
transportName = newTransport.name;
promSocketCount.inc({ transport: transportName });