mirror of https://github.com/calzoneman/sync.git
Fix bug in cytube_sockets_num_connected metric
This commit is contained in:
parent
97231e515c
commit
3eb97bab6a
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue