]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/progress.cc
* apt-pkg/deb/dpkgpm.cc:
[apt.git] / apt-pkg / contrib / progress.cc
index cb272e3898a2b415960c9fa68f4cd8281e9c01d3..6ce6e950a788a90d603ac693ac215113c8b43cb6 100644 (file)
@@ -8,9 +8,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/progress.h"
-#endif 
 #include <apt-pkg/progress.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/configuration.h>
@@ -115,6 +112,8 @@ bool OpProgress::CheckChange(float Interval)
    
    if ((int)LastPercent == (int)Percent)
       return false;
+
+   LastPercent = Percent;
    
    if (Interval == 0)
       return false;
@@ -126,7 +125,6 @@ bool OpProgress::CheckChange(float Interval)
    if (Diff < Interval)
       return false;
    LastTime = Now;   
-   LastPercent = Percent;
    return true;
 }
                                                                        /*}}}*/