X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b5d727a3d33a53d567b3e1fd79b32fc22faa407c..4c49961112370b869c3c7db61793bb899c709c09:/apt-pkg/contrib/progress.cc?ds=sidebyside diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc index cb272e389..e3db9a45a 100644 --- a/apt-pkg/contrib/progress.cc +++ b/apt-pkg/contrib/progress.cc @@ -115,6 +115,8 @@ bool OpProgress::CheckChange(float Interval) if ((int)LastPercent == (int)Percent) return false; + + LastPercent = Percent; if (Interval == 0) return false; @@ -126,7 +128,6 @@ bool OpProgress::CheckChange(float Interval) if (Diff < Interval) return false; LastTime = Now; - LastPercent = Percent; return true; } /*}}}*/