Bug 10847 - inconsistent units should be unified and follow SI/IEC standard
Summary: inconsistent units should be unified and follow SI/IEC standard
Status: RESOLVED WONTFIX
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.1
Hardware: All All
: P5 trivial (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 21:32 UTC by Jonas Stein
Modified: 2020-07-26 08:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein 2014-09-30 21:32:15 UTC
rsync prints units not conistent. As shown in a typical output like in
https://bugzilla.samba.org/show_bug.cgi?id=10580



I suggest 

* to follow SI prefix standard [1] and add a single space between the value and the unit: 

3.13G -> 3.13 GB



* to note all units in a unique way:
now it is "K bytes/sec" and "kB/s" 


* to chose between binary IEC [2] units and SI units (perhaps ask the user for an option? --iec --si) and wite a short note in the man page like 1 kB = 1000 Byte
or 1 KiB = 1024 B.


* to note "seconds" with the SI symbol "s" [3]



[1] http://en.wikipedia.org/wiki/Metric_prefix
[2] http://physics.nist.gov/cuu/Units/binary.html
[3] http://www.bipm.org/en/measurement-units/
Comment 1 Wayne Davison 2020-07-26 08:12:42 UTC
The user chooses between the 1000 & 1024 units via how many --human-readable options they specify. Rsync uses the same suffixes since it's trying to be brief, and it's left to the reader to know that they represent the units that they requested.