1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmdbusd: Assign percentage on set

This commit is contained in:
Tony Asleson 2016-09-19 14:30:04 -05:00
parent d18ea3f2cb
commit ed37b4a626

View File

@ -49,8 +49,6 @@ class JobState(object):
with self.rlock:
if self._request:
self._complete = self._request.is_done()
if self._complete:
self._percent = 100
return self._complete
@ -58,6 +56,7 @@ class JobState(object):
def Complete(self, value):
with self.rlock:
self._complete = value
self._percent = 100
self._cond.notify_all()
@property