Skip to content

Commit 4c2a6bb

Browse files
committed
Much better
1 parent b7b21d4 commit 4c2a6bb

23 files changed

+37493
-3
lines changed

server/lib/scribe_server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var dns = require('dns');
1212
var gi = require('geoip-lite');
1313

1414
var listOfTelescopes = [];
15-
var DESIRED_RATE = 10;
15+
var DESIRED_RATE = 30;
1616
var INTERVAL_MS = 1000;
1717

1818

@@ -21,13 +21,14 @@ function resetList() {
2121
}
2222

2323

24-
function resultMessage(checkType, status, availability, geo) {
24+
function resultMessage(checkType, status, availability, monitoringZoneId, geo) {
2525
return {
2626
type: "result",
2727
data: {
2828
checkType: checkType,
2929
status: status,
3030
availability: availability,
31+
monitoringZoneId: monitoringZoneId,
3132
geo: geo
3233
}};
3334
}
@@ -65,7 +66,7 @@ function processMsg(msg) {
6566
// process.exit();
6667
}
6768
if (geo) {
68-
var result = resultMessage(te.checkType, te.status, te.availability, geo);
69+
var result = resultMessage(te.checkType, te.status, te.availability, te.monitoringZoneId, geo);
6970
listOfTelescopes.push(result);
7071
}
7172
});

server/public/ce.png

5.07 KB
Loading

server/public/data/lines.json

Whitespace-only changes.

server/public/data/population909500.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)