]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/progress: remove "since" from duration string 31007/head
authorKefu Chai <kchai@redhat.com>
Mon, 21 Oct 2019 06:23:48 +0000 (14:23 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 21 Oct 2019 06:25:06 +0000 (14:25 +0800)
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 <kchai@redhat.com>
src/pybind/mgr/progress/module.py

index 9eb0200cc25e7ae4d1d80adc9e34f382be8f35f3..4ab545cb73d17b7d37bbad5d8122e1ce661cad19 100644 (file)
@@ -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):