From 12bbddf9ac43f7a5844e5b833062b840d37b003d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 13 Nov 2009 16:30:28 +0000 Subject: show the run time instead of the estimated remaining time, so that the numbers (current number of package, current runtime) are both increasing to the right value. git-svn-id: svn://tug.org/texlive/trunk@16009 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/tlmgr.pl | 11 ++++++----- Master/tlpkg/TeXLive/TLUtils.pm | 9 +++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index e858d5fa131..e21052b5736 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -5027,7 +5027,7 @@ The output format is as follows: fieldname "\t" value ... "end-of-header" - pkgname status localrev serverrev size estrem esttot + pkgname status localrev serverrev size runtim esttot ... "end-of-updates" other output from post actions, not in machine readable form @@ -5040,9 +5040,10 @@ The I and I fields for each package are the revision numbers in the local installation and server repository, respectively. The I field is the number of bytes to be downloaded, i.e., the size of the compressed tar file for a network -installation, not the unpacked size. The estrem and esttot fields +installation, not the unpacked size. The runtim and esttot fields are only present for updated and auto-install packages, and contain -the estimated remaining time and the estimated total time. +the currently passed time since start of installation/updates +and the estimated total time. Line endings may be either LF or CRLF depending on the current platform. @@ -5131,9 +5132,9 @@ present on the server. The size in bytes of the package on the server. The sum of all the package sizes is given in the C header field mentioned above. -=item I +=item I -The estimated remaining time. +The run time since start of installations or updates. =item I diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 38fcb781b1f..0d3bfe0d83c 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -1063,7 +1063,7 @@ sub removed_dirs =item C -Returns the estimated remaining and estimated total time +Returns the current running time and the estimated total time based on the total size, the already done size, and the start time. =cut @@ -1076,7 +1076,12 @@ sub time_estimate { my $curtime = time(); my $passedtime = $curtime - $starttime; my $esttotalsecs = int ( ( $passedtime * $totalsize ) / $donesize ); - my $remsecs = $esttotalsecs - $passedtime; + # + # we change the display to show that passed time instead of the + # estimated remaining time. We keep the old code and naming and + # only initialize the $remsecs to the $passedtime instead. + # my $remsecs = $esttotalsecs - $passedtime; + my $remsecs = $passedtime; my $min = int($remsecs/60); my $hour; if ($min >= 60) { -- cgit v1.2.3