diff -r 1813654427d7 -r 5a988a2c2624 backup.py --- a/backup.py Sat Jan 20 20:53:28 2018 +0000 +++ b/backup.py Sat Jan 20 21:27:05 2018 +0000 @@ -106,13 +106,13 @@ t=status['type'] #may_indicate_finished=False if t=='progress_percent': - #may_indicate_finished=True - # Temporary output - if 'current' not in status: - status['current']=0 - if 'total' not in status: - status['total']=0 - print('%d / %d' % (status['current'], status['total'])) + if 'current' in status and 'total' in status: + with self.lock: + self.current_operation.progress_current=status['current'] + self.current_operation.progress_total=status['total'] + status, callback=self.__status_unlocked() + if callback: + callback(self, status) elif t=='archive_progress': pass elif t=='progress_message':