From 9d02e4e1f642be3486e618f676a84c5a0b685b0d Mon Sep 17 00:00:00 2001
From: arshiam2 <arshiam2@illinois.edu>
Date: Sun, 7 Oct 2018 20:39:20 -0500
Subject: [PATCH] wip

---
 machine/index.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/machine/index.js b/machine/index.js
index 700e3c1..ef8d4bc 100644
--- a/machine/index.js
+++ b/machine/index.js
@@ -117,9 +117,8 @@ function updateTimeStamp(ackMachineNumber) {
 }
 
 function updateStatuses() {
-  setTimeout(1000)
   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"
 
       const message = Buffer.from(`dead ${connection}`);
-- 
GitLab