]> git.saurik.com Git - apt.git/blobdiff - apt-private/acqprogress.cc
Merge branch 'debian/sid' into bugfix/update-progress-reporting
[apt.git] / apt-private / acqprogress.cc
index 0f5b53e500666ff7d48ec48085cfa7fdb9480de3..ee6c4536f1c3ffb964dcb3d3c8d9a9e8af5b6aa1 100644 (file)
@@ -170,7 +170,7 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
       ScreenWidth = sizeof(Buffer)-1;
 
    // Put in the percent done
-   sprintf(S,"%.0f%%",((CurrentBytes + CurrentItems)*100.0)/(TotalBytes+TotalItems));
+   sprintf(S,"%.0f%%", Percent);
 
    bool Shown = false;
    for (pkgAcquire::Worker *I = Owner->WorkersBegin(); I != 0;