summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-16 17:41:11 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-16 17:41:11 +0200
commit96c6cab1fd5a5de19fbd552b42e1dd1c08417946 (patch)
treeaf57b603454e42d784aa3ace7253151e8d805818 /apt-pkg/acquire.h
parentb11f95991d844d36fc0e3832810057f72a2d810b (diff)
calculate Percent as part of pkgAcquireStatus to provide a weighted percent for both items and bytes
Diffstat (limited to 'apt-pkg/acquire.h')
-rw-r--r--apt-pkg/acquire.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/acquire.h b/apt-pkg/acquire.h
index ef16d8556..0113021b2 100644
--- a/apt-pkg/acquire.h
+++ b/apt-pkg/acquire.h
@@ -714,6 +714,10 @@ class pkgAcquireStatus
/** \brief The number of items that have been successfully downloaded. */
unsigned long CurrentItems;
+ /** \brief The estimated percentage of the download (0-100)
+ */
+ double Percent;
+
public:
/** \brief If \b true, the download scheduler should call Pulse()