Browse files

Why the fuck did this stop working? How did it ever work in the first…

… place? o_O
  • Loading branch information...
1 parent 600c22b commit c7a12c84de6d2cae109fd18aaa7991133d940212 Ryan McGrath committed Sep 16, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −1 server.js
  2. +0 −2 worker_api.js
View
2 server.js
@@ -143,7 +143,7 @@ app.configure(function() {
//var socketio = io.listen(app);
-app.use("/workers", require("./worker_api")(socketio));
+app.use("/workers", require("./worker_api")(io));
/* Redirect to correct URL on every request */
app.get(/.*/, function (req, resp, next) {
View
2 worker_api.js
@@ -16,12 +16,10 @@ var express = require("express"),
module.exports = function(socketio) {
- /*
var jobs_per_minute = 0;
setInterval(function(){
socketio.broadcast(JSON.stringify({time: new Date().getTime(), jobs_per_minute: jobs_per_minute}));
}, 2000);
-*/
var app = express.createServer();

0 comments on commit c7a12c8

Please sign in to comment.