From 9782b197ce506c86c7987a029df6ac741b3595e0 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Wed, 17 Mar 2010 19:16:03 +0300 Subject: [PATCH] Fix calculating of progress bar for Xdialog --- pym/cl_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/cl_client.py b/pym/cl_client.py index a97a3f3..6fb0258 100644 --- a/pym/cl_client.py +++ b/pym/cl_client.py @@ -113,7 +113,7 @@ class GProgressBar(NoneProgressBar): '''Установить текущее значения для прогресса''' if self.pipein and value <= self.max: progress_value = int(value / self.kmax) - if progress_value > int(self.value * self.kmax) and progress_value < 100: + if progress_value > int(self.value / self.kmax) and progress_value < 100: self._set(progress_value) self.value = value