diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:57 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:57 +0000 |
commit | 8ce4327bc0d3f2695b936391c856cc80de6c0d83 (patch) | |
tree | 1ba165575c80bb48909f56b2c1e875524c65ebab /apt-pkg/contrib/progress.cc | |
parent | 1a7c9eba99a9521a7722be37d6bafe5fa4936630 (diff) |
More progress updates
Author: jgg
Date: 1998-08-26 04:52:23 GMT
More progress updates
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 |