Skip to content
Snippets Groups Projects
Commit 9d02e4e1 authored by arshiam2's avatar arshiam2
Browse files

wip

parent a5031583
Branches week3
No related tags found
1 merge request!2WIP: Old 4
...@@ -117,9 +117,8 @@ function updateTimeStamp(ackMachineNumber) { ...@@ -117,9 +117,8 @@ function updateTimeStamp(ackMachineNumber) {
} }
function updateStatuses() { function updateStatuses() {
setTimeout(1000)
Object.keys(connections).forEach(connection => { Object.keys(connections).forEach(connection => {
if (Date.now() - connections[connection].timestamp >= (2 * 10000)) { if (Date.now() - connections[connection].timestamp >= (2 * 1000)) {
connections[connection].status = "dead" connections[connection].status = "dead"
const message = Buffer.from(`dead ${connection}`); const message = Buffer.from(`dead ${connection}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment