mirror of
https://github.com/ceph/ceph
synced 2025-04-11 04:02:04 +00:00
mgr/orch: include uptime in 'orch ps'
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
20c4a9783d
commit
f9c65b49ab
@ -406,6 +406,8 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule):
|
|||||||
1: 'running',
|
1: 'running',
|
||||||
None: '<unknown>'
|
None: '<unknown>'
|
||||||
}[s.status]
|
}[s.status]
|
||||||
|
if s.status == 1 and s.started:
|
||||||
|
status += ' (%s)' % to_pretty_timedelta(now - s.started)
|
||||||
|
|
||||||
def nice_delta(t, suffix=''):
|
def nice_delta(t, suffix=''):
|
||||||
if t:
|
if t:
|
||||||
|
Loading…
Reference in New Issue
Block a user