]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/progress.cc
* merged from apt--mvo
[apt.git] / apt-pkg / contrib / progress.cc
index ffd1191e52c4e608950d2c84f20b46fd49909eac..6ce6e950a788a90d603ac693ac215113c8b43cb6 100644 (file)
@@ -112,6 +112,8 @@ bool OpProgress::CheckChange(float Interval)
    
    if ((int)LastPercent == (int)Percent)
       return false;
+
+   LastPercent = Percent;
    
    if (Interval == 0)
       return false;
@@ -123,7 +125,6 @@ bool OpProgress::CheckChange(float Interval)
    if (Diff < Interval)
       return false;
    LastTime = Now;   
-   LastPercent = Percent;
    return true;
 }
                                                                        /*}}}*/