]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
* apt-ftparchive might write corrupt Release files (LP: #46439)
[apt.git] / apt-pkg / acquire.cc
index 91f60388959bce44a50ee81668b25d66e1e13e4a..38944bbacd63efcbdcbf75f3e533c0a77a80ac81 100644 (file)
@@ -797,7 +797,7 @@ bool pkgAcquireStatus::Pulse(pkgAcquire *Owner)
    // Compute the CPS
    struct timeval NewTime;
    gettimeofday(&NewTime,0);
-   if (NewTime.tv_sec - Time.tv_sec == 6 && NewTime.tv_usec > Time.tv_usec ||
+   if ((NewTime.tv_sec - Time.tv_sec == 6 && NewTime.tv_usec > Time.tv_usec) ||
        NewTime.tv_sec - Time.tv_sec > 6)
    {    
       double Delta = NewTime.tv_sec - Time.tv_sec +