mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
lvmdbusd: Make job.Percent a double
This commit is contained in:
parent
2bb09b4015
commit
0985b2d0d4
@ -105,7 +105,7 @@ class JobState(object):
|
|||||||
|
|
||||||
# noinspection PyPep8Naming
|
# noinspection PyPep8Naming
|
||||||
class Job(AutomatedProperties):
|
class Job(AutomatedProperties):
|
||||||
_Percent_meta = ('y', JOB_INTERFACE)
|
_Percent_meta = ('d', JOB_INTERFACE)
|
||||||
_Complete_meta = ('b', JOB_INTERFACE)
|
_Complete_meta = ('b', JOB_INTERFACE)
|
||||||
_Result_meta = ('o', JOB_INTERFACE)
|
_Result_meta = ('o', JOB_INTERFACE)
|
||||||
_GetError_meta = ('(is)', JOB_INTERFACE)
|
_GetError_meta = ('(is)', JOB_INTERFACE)
|
||||||
@ -121,7 +121,7 @@ class Job(AutomatedProperties):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def Percent(self):
|
def Percent(self):
|
||||||
return dbus.Byte(int(self.state.Percent))
|
return dbus.Double(float(self.state.Percent))
|
||||||
|
|
||||||
@Percent.setter
|
@Percent.setter
|
||||||
def Percent(self, value):
|
def Percent(self, value):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user