From: Kefu Chai Date: Mon, 21 Oct 2019 06:23:48 +0000 (+0800) Subject: mgr/progress: remove "since" from duration string X-Git-Tag: v15.1.0~1198^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31007%2Fhead;p=ceph.git 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 --- diff --git a/src/pybind/mgr/progress/module.py b/src/pybind/mgr/progress/module.py index 9eb0200cc25e..4ab545cb73d1 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):