Skip to content

Commit

Permalink
[api] Include uids in forever list
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jul 7, 2011
1 parent 57bc396 commit 4446215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ forever.list = function (format, procs) {

if (format) {
var index = 0, rows = [
[' ', 'command ', 'script', 'forever ', 'pid', 'logfile', 'uptime']
[' ', 'uid', 'command ', 'script', 'forever ', 'pid', 'logfile', 'uptime']
];

//
Expand All @@ -396,6 +396,7 @@ forever.list = function (format, procs) {
procs.forEach(function (proc) {
rows.push([
'[' + index + ']',
proc.uid,
(proc.command || 'node').grey,
[proc.file].concat(proc.options).join(' ').grey,
proc.foreverPid,
Expand All @@ -411,6 +412,7 @@ forever.list = function (format, procs) {
'white',
'grey',
'grey',
'grey',
'white',
'white',
'magenta',
Expand Down

0 comments on commit 4446215

Please sign in to comment.