diff options
Diffstat (limited to 'apt-pkg/contrib/progress.cc')
-rw-r--r-- | apt-pkg/contrib/progress.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc index 4be7b87b9..074de0805 100644 --- a/apt-pkg/contrib/progress.cc +++ b/apt-pkg/contrib/progress.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: progress.cc,v 1.5 1998/08/23 03:52:22 jgg Exp $ +// $Id: progress.cc,v 1.6 1998/08/26 04:52:28 jgg Exp $ /* ###################################################################### OpProgress - Operation Progress @@ -60,6 +60,16 @@ void OpProgress::SubProgress(unsigned long SubTotal,string Op) Update(); } /*}}}*/ +// OpProgress::SubProgress - Set the sub progress state /*{{{*/ +// --------------------------------------------------------------------- +/* */ +void OpProgress::SubProgress(unsigned long SubTotal) +{ + this->SubTotal = SubTotal; + Percent = Current*100.0/Total; + Update(); +} + /*}}}*/ // OpProgress::CheckChange - See if the display should be updated /*{{{*/ // --------------------------------------------------------------------- /* Progress calls are made so frequently that if every one resulted in |