diff --git a/package.json b/package.json index ca13011..c7490db 100644 --- a/package.json +++ b/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" } } diff --git a/ws.js b/ws.js index 2d2e7d9..b8a6636 100755 --- a/ws.js +++ b/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)); }); }); }