Bug 2701

Summary: sftp and scp show wrong units for speeds and file sizes in progress meter
Product: Portable OpenSSH Reporter: Jakub Jelen <jjelen>
Component: sftpAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P5    
Version: 7.4p1   
Hardware: Other   
OS: Linux   
Attachments:
Description Flags
Proposed patch to use units recommended by IEEE none

Description Jakub Jelen 2017-03-30 22:30:27 AEDT
Created attachment 2967 [details]
Proposed patch to use units recommended by IEEE

Reading through IEEE_1541-2002 [1], OpenSSH progress meter code is wrongly using K, M, G, T prefixes as a multiplies of 1024. The data should be divided either by 1000 or the correct prefixes should be used (Ki, Mi, Gi, Ti).

This can be very confusing for users [2] who compare the sizes with other tools presenting sizes in correct format.

[1] https://en.wikipedia.org/wiki/IEEE_1541-2002

[2] http://stackoverflow.com/questions/43115542/scp-transfer-reports-100-complete-and-is-transferred-but-file-size-is-inco