summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-07 18:11:00 +0200
committerMichael Vogt <mvo@debian.org>2014-05-07 18:11:00 +0200
commit17f6ffe0c319859761707bdcd1a1afa5bfab0bb2 (patch)
treea81daf1ca43b5ac07be5ff6c15bda2dcdf6483ea /apt-private
parent00026265672f2663e0aa0ab1a3fa7333f718a643 (diff)
parentff94be47f5dbdcf99cea23fad8c9b992a8e5a67e (diff)
Merge remote-tracking branch 'mvo/bugfix/update-progress-reporting' into debian/experimental
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/acqprogress.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc
index 0f5b53e50..ee6c4536f 100644
--- a/apt-private/acqprogress.cc
+++ b/apt-private/acqprogress.cc
@@ -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;