Skip to content

Commit

Permalink
temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Aug 28, 2011
1 parent cafeeac commit 36aa3c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/top
@@ -1,12 +1,13 @@
#!/usr/bin/env node

var exec = require('child_process').exec;
var cmd = "ps aux | awk '/chroot_runner/ && !/awk/ {print $3,$4,$2,$5,$6,$10,$13}' | sort -r | head -n 20";
//$13 should be name?
var cmd = "ps aux | awk '/chroot_runner/ && !/awk/ {print $3,$4,$2,$5,$6,$10,$8}' | sort -r | head -n 35";

require('colors');

var top = function() {
console.log('cpu\tmem\tvsz\trss\tpid\ttime\tapp'.magenta.bold);
console.log('cpu\tmem\tvsz\trss\tpid\ttime\tdate'.magenta.bold);

exec(cmd, function(err, stdout) {
var data = stdout.split('\n');
Expand Down

0 comments on commit 36aa3c7

Please sign in to comment.