From a246f2dc8c6084d857edb2792ce6b37c794e3d69 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:57 +0000 Subject: Sync Author: jgg Date: 1998-09-07 05:28:32 GMT Sync --- apt-pkg/contrib/progress.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apt-pkg/contrib') diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc index 074de0805..9a29c4b66 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.6 1998/08/26 04:52:28 jgg Exp $ +// $Id: progress.cc,v 1.7 1998/09/07 05:28:38 jgg Exp $ /* ###################################################################### OpProgress - Operation Progress @@ -27,7 +27,9 @@ OpProgress::OpProgress() : Current(0), Total(0), Size(0), SubTotal(1), /*}}}*/ // OpProgress::Progress - Sub progress with no state change /*{{{*/ // --------------------------------------------------------------------- -/* This assumes that Size is the same as the current sub size */ +/* Current is the Base Overall progress in units of Total. Cur is the sub + progress in units of SubTotal. Size is a scaling factor that says what + percent of Total SubTotal is. */ void OpProgress::Progress(unsigned long Cur) { Percent = (Current + Cur/((float)SubTotal)*Size)*100.0/Total; -- cgit v1.2.3