From 56602a0a7c5531c7a8b9e991ae40b56919f5ef5a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 21 Oct 2019 14:23:48 +0800 Subject: [PATCH] mgr/progress: remove "since" from duration string quote from the description of the tracker ticket: > This is a duration and therefore "since" doesn't make sense since it's > not the start of the event. Fixes: https://tracker.ceph.com/issues/40976 Signed-off-by: Kefu Chai --- src/pybind/mgr/progress/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/progress/module.py b/src/pybind/mgr/progress/module.py index 9eb0200cc25..4ab545cb73d 100644 --- a/src/pybind/mgr/progress/module.py +++ b/src/pybind/mgr/progress/module.py @@ -107,7 +107,7 @@ class Event(object): # Update duration of event in seconds/minutes/hours duration = time.time() - self.started_at - self._duration_str = time.strftime("(since %Hh %Mm %Ss)", time.gmtime(duration)) + self._duration_str = time.strftime("(%Hh %Mm %Ss)", time.gmtime(duration)) def estimated_time_remaining(self): -- 2.39.5