7974c74d by jabis

timer fix

1 parent 93993793
Showing 1 changed file with 5 additions and 5 deletions
......@@ -90,19 +90,19 @@
//console.log(req)
io = require('socket.io').listen(server);
}
io.of(config.path).on('connection', (socket) => {
io.of(config.path).on('connection', (socket) => {
socket.emit('start', config.spans);
socket.on('change', function() {
socket.emit('start', config.spans);
});
});
config.spans.forEach((span) => {
span.os = [];
span.responses = [];
setInterval(() => gatherOsMetrics(io, span), span.interval * 1000);
setInterval(() => gatherOsMetrics(socket, span), span.interval * 1000);
});
});
const startTime = process.hrtime();
if (req.path === config.path) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!