mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +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',
|
||||
None: '<unknown>'
|
||||
}[s.status]
|
||||
if s.status == 1 and s.started:
|
||||
status += ' (%s)' % to_pretty_timedelta(now - s.started)
|
||||
|
||||
def nice_delta(t, suffix=''):
|
||||
if t:
|
||||
|
Loading…
Reference in New Issue
Block a user