Bug 127613

Summary: progress output in wrong order
Product: [Fedora] Fedora Reporter: Dave Jones <davej>
Component: rsyncAssignee: Jay Fenlason <fenlason>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: barryn, jfeeney, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-29 18:11:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix. none

Description Dave Jones 2004-07-10 22:49:14 UTC
Description of problem:
With --progress, rsync outputs text like so...

650534912 100%    1.08MB/s    0:09:33  (4, 89.7% of 29)

which looks odd, (89.7%, 4 of 29) would seem to make more sense.

Comment 1 Dave Jones 2004-11-25 07:02:33 UTC
Created attachment 107453 [details]
fix.

Comment 2 Dave Jones 2004-11-25 07:04:45 UTC
attached patch seems to work for me, though it might be highlighting another bug.

Look at this output..

zlib/zutil.o
        7872 100%   19.66kB/s    0:00:00  (100.0%, 249 of 260)

sent 1258665 bytes  received 5000 bytes  2527330.00 bytes/sec
total size is 3874565  speedup is 3.


Shouldn't that last one be 260 of 260 ?  It seems it isn't
counting directories properly.  (This was an rsync of the rsync src dir,
which has 249 files and 11 dirs)


Comment 3 Jay Fenlason 2004-11-29 18:11:57 UTC
From the upstream maintainer: 
 
The bug reporter is misreading the output.  As stated in the manpage 
(with *highlighting* added by me): 
 
    After a file is complete, the data looks like this: 
 
         1238099 100%  146.38kB/s    0:00:08  (5, 57.1% of 396) 
 
    This tells you the final file size, that it's 100% complete, the 
    final transfer rate for the file, the amount of elapsed time it 
took 
    to transfer the file, and the addition of a total-transfer 
summary 
    in parentheses.  These additional numbers tell you *how many 
files 
    have been updated*, and what percent of the total number of 
files 
    has been scanned. 
 
The bug reporter is misinterpreting the first number -- the output 
is 
correct as is.  Note also that rsync has no idea how many files it 
will 
transfer before starting to transfer files (and it would slow it 
down to 
do that extra scan beforehand, so it will never be done). 
 
Feel free to discuss any suggestions for changing the output on the 
mailing list, but just swapping the numbers (as suggested in bug 
127613) 
would result in a bogus display of information, and will not be 
considered.