From a216e76189a80bb5c3194916d9259c1afacdb35b Mon Sep 17 00:00:00 2001 From: smoodiver Date: Tue, 12 Mar 2013 20:46:19 +1300 Subject: [PATCH] checks proc.running and writes STOPPED instead of uptime if stopped --- lib/forever.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forever.js b/lib/forever.js index c3c228be..01e7a093 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -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; } } };