From: Sage Weil Date: Wed, 4 Mar 2020 16:49:19 +0000 (-0600) Subject: mgr/orch: include uptime in 'orch ps' X-Git-Tag: v15.1.1~103^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9c65b49abfc58da396717d891857abf7fb77a24;p=ceph.git mgr/orch: include uptime in 'orch ps' Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 74373d94c51b..36143f90da47 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -406,6 +406,8 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule): 1: 'running', None: '' }[s.status] + if s.status == 1 and s.started: + status += ' (%s)' % to_pretty_timedelta(now - s.started) def nice_delta(t, suffix=''): if t: