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

update

parent 839faaa5
No related branches found
No related tags found
No related merge requests found
......@@ -417,12 +417,7 @@ app.get("/sink", function(req, res) {
});
app.post("/getSecond", function(req, res) {
// console.log("spout got: " + req.body.state);
// queue.push(req.body);
// clients
// clients.filter(e => String(e) !== String(process.env.VM))
console.log(Math.min(...clients.filter(e => String(e) !== String(process.env.VM))))
res.send(clients);
res.send(Math.min(...clients.filter(e => String(e) !== String(process.env.VM))));
});
round_robin = 0;
......
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