Skip to content

Commit ca6dd4c

Browse files
Christoph BodensteinChristoph Bodenstein
Christoph Bodenstein
authored and
Christoph Bodenstein
committed
Merge origin/master
2 parents bc8e4ae + 700eb96 commit ca6dd4c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

TOEDistributionServer/src/node/tns/routes/index.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var express = require('express'),
1212
formidable = require('formidable'),
1313
fs = require('graceful-fs'),
1414
path = require('path');
15-
var DEFAULT_SLEEPING_TIME = 3000;// in ms
15+
var DEFAULT_SLEEPING_TIME = 5000;// in ms
1616
var DEFAULT_MINIMUM_TIMEOUT = 500;//in sec
1717

1818
/* GET home page. */
@@ -222,7 +222,7 @@ router.get('/rest/api/downloads/ND', function (req, res) {
222222
if (err) {
223223
console.log("Error removing client from list.");
224224
}
225-
225+
});
226226
activeclients.insert({
227227
ip: req.connection.remoteAddress,
228228
id: clientID,
@@ -234,13 +234,8 @@ router.get('/rest/api/downloads/ND', function (req, res) {
234234
} else {
235235
}
236236
});
237-
});
238-
/*
239-
activeclients.insert({ip:req.connection.remoteAddress, timestamp: Date.now()}, function(err, result){
240-
if (err) {
241-
console.log("Error updating client-collection.");
242-
} else {}
243-
});*/
237+
238+
244239

245240
//Check for timed out Simulations
246241
checkForTimedOutSimulations(simlist, function (err) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
mongod --config mongoconfig.conf
3+
set PORT=8080
4+
export PORT=8080
5+
npm start

0 commit comments

Comments
 (0)