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:
Cole Robinson 2021-06-09 16:32:37 -04:00
parent f2a04f1abc
commit 18b017f148
1 changed files with 2 additions and 3 deletions

View File

@ -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: