]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
merged from Luca Bruno
[apt.git] / apt-pkg / acquire.cc
index 6840ae120c4c9edd0a66043a0791aad1a05f6b16..80c2fee0f19b2feee5575a7f62e2568afaee9fc0 100644 (file)
@@ -796,7 +796,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 +