[Bug 2701] New: sftp and scp show wrong units for speeds and file sizes in progress meter

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 30 22:30:27 AEDT 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2701

            Bug ID: 2701
           Summary: sftp and scp show wrong units for speeds and file
                    sizes in progress meter
           Product: Portable OpenSSH
           Version: 7.4p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jjelen at redhat.com

Created attachment 2967
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2967&action=edit
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

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list