From 8ce4327bc0d3f2695b936391c856cc80de6c0d83 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:57 +0000 Subject: More progress updates Author: jgg Date: 1998-08-26 04:52:23 GMT More progress updates --- apt-pkg/contrib/progress.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'apt-pkg/contrib/progress.cc') 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 -- cgit v1.2.3-70-g09d2