[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Limit progress bar amount to 1.0



> diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
> index ebd0085..f6ce592 100755
> --- a/pyanaconda/gui.py
> +++ b/pyanaconda/gui.py
> @@ -478,6 +478,8 @@ class ProgressWindow:
>              delta -= 0.05
>  
>      def set (self, amount):
> +        amount = min(amount, self.total)
> +
>          # only update widget if we've changed by 5% or our timeout has
>          # expired
>          curval = self.progress.get_fraction()

I like this better than the first one.  What's the behavior you are
seeing without it?

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]