Skip to content

Commit

Permalink
checks proc.running and writes STOPPED instead of uptime if stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
smoodiver authored and indexzero committed Aug 1, 2014
1 parent 55141c8 commit a216e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ forever.columns = {
uptime: {
color: 'yellow',
get: function (proc) {
return timespan.fromDates(new Date(proc.ctime), new Date()).toString().yellow;
return proc.running ? timespan.fromDates(new Date(proc.ctime), new Date()).toString().yellow : "STOPPED".red;
}
}
};

0 comments on commit a216e76

Please sign in to comment.