diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-04-16 17:41:11 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-04-16 17:41:11 +0200 |
commit | 96c6cab1fd5a5de19fbd552b42e1dd1c08417946 (patch) | |
tree | af57b603454e42d784aa3ace7253151e8d805818 /apt-pkg/acquire.h | |
parent | b11f95991d844d36fc0e3832810057f72a2d810b (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.h | 4 |
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() |