]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/progress: added the time an event has been in progress 28907/head
authorKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Wed, 10 Jul 2019 20:56:31 +0000 (16:56 -0400)
committerKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Wed, 10 Jul 2019 20:56:31 +0000 (16:56 -0400)
forgot to add the file mgr_module.py to last
commit so added this now

Signed-off-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
src/pybind/mgr/mgr_module.py

index bdd0b26cc390898dea88a62ae67720b16ef4995d..55fc98c42d881d9e9f5c779ba8331f69b23623bf 100644 (file)
@@ -1202,8 +1202,8 @@ class MgrModule(ceph_module.BaseMgrModule):
 
         return self._ceph_have_mon_connection()
 
-    def update_progress_event(self, evid, desc, progress):
-        return self._ceph_update_progress_event(str(evid), str(desc), float(progress))
+    def update_progress_event(self, evid, desc, progress, duration):
+        return self._ceph_update_progress_event(str(evid), str(desc+" "+duration), float(progress))
 
     def complete_progress_event(self, evid):
         return self._ceph_complete_progress_event(str(evid))