timer fix
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -95,14 +95,14 @@ | ... | @@ -95,14 +95,14 @@ |
95 | socket.on('change', function() { | 95 | socket.on('change', function() { |
96 | socket.emit('start', config.spans); | 96 | socket.emit('start', config.spans); |
97 | }); | 97 | }); |
98 | }); | ||
99 | 98 | ||
100 | config.spans.forEach((span) => { | 99 | config.spans.forEach((span) => { |
101 | span.os = []; | 100 | span.os = []; |
102 | span.responses = []; | 101 | span.responses = []; |
103 | setInterval(() => gatherOsMetrics(io, span), span.interval * 1000); | 102 | setInterval(() => gatherOsMetrics(socket, span), span.interval * 1000); |
104 | }); | 103 | }); |
105 | 104 | ||
105 | }); | ||
106 | 106 | ||
107 | const startTime = process.hrtime(); | 107 | const startTime = process.hrtime(); |
108 | if (req.path === config.path) { | 108 | if (req.path === config.path) { | ... | ... |
-
Please register or sign in to post a comment