domain: Force jobinfo values to be ints
We only want our meter abstraction to handle int values now Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
f2a04f1abc
commit
18b017f148
|
@ -39,9 +39,8 @@ def start_job_progress_thread(vm, meter, progtext):
|
|||
|
||||
try:
|
||||
jobinfo = vm.job_info()
|
||||
data_total = float(jobinfo[3])
|
||||
# data_processed = float(jobinfo[4])
|
||||
data_remaining = float(jobinfo[5])
|
||||
data_total = int(jobinfo[3])
|
||||
data_remaining = int(jobinfo[5])
|
||||
|
||||
# data_total is 0 if the job hasn't started yet
|
||||
if not data_total:
|
||||
|
|
Loading…
Reference in New Issue