Browse Source

deps

master
Lloyd Brookes 11 years ago
parent
commit
79a3e1b2ba
  1. 4
      package.json
  2. 4
      ws.js

4
package.json

@ -10,7 +10,7 @@
"dependencies": {
"connect": "~2.13.0",
"nature": "~0.3.0",
"console-dope": "~0.1.0",
"wodge": "~0.2.0"
"console-dope": "~0.2.0",
"wodge": "~0.3.0"
}
}

4
ws.js

@ -147,11 +147,11 @@ if (argv.help){
}
oldWrite.call(this, data);
total.bytes += data.length;
console.column(12).write((w.bytesToSize(total.bytes, 2) + " ").slice(0,12));
console.column(12).write(w.padRight(w.bytesToSize(total.bytes, 2), 12));
};
console.column(24).write(++total.connections);
socket.on("close", function(){
console.column(24).write((--total.connections + " ").slice(0,12));
console.column(24).write(w.padRight(--total.connections));
});
});
}

Loading…
Cancel
Save