Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523930 - emerge report in KiByte or kByte
Summary: emerge report in KiByte or kByte
Status: RESOLVED UPSTREAM
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-28 11:14 UTC by Jonas Stein
Modified: 2014-09-30 21:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2014-09-28 11:14:22 UTC
emerge --sync reports something like 
===
Number of files: 181405
Number of files transferred: 2226
Total file size: 331.60M bytes
Total transferred file size: 4.00M bytes
Literal data: 4.00M bytes
Matched data: 0 bytes
File list size: 4.27M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 68.58K
Total bytes received: 8.48M

sent 68.58K bytes  received 8.48M bytes  683.92K bytes/sec
total size is 331.60M  speedup is 38.79
===

Units are confusing here. 
KB and KiB stands for 1014 Byte
kB stands for 1000 Byte

on the other hand MB stands only for 1000 kB

I suggest to unify the output to SI standard kB and MB, or KiB and MiB.

There should be a space between value and unit.

Example:

Total file size: 331.60 MB

Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-09-28 11:30:37 UTC
This output is from `rsync --stats --human-readable`. It seems that there is no option (in rsync 3.1.1) to use KiB / MiB / GiB units in output. You should ask rsync upstream to implement this feature (unconditionally or controlled by a new option).
Comment 2 Zac Medico gentoo-dev 2014-09-28 16:28:03 UTC
The output that you are complaining about comes directly from rsync. Briefly looking at the rsync man page, I only see one option related to units, which is the -h/--human-readable option.
Comment 3 Jonas Stein gentoo-dev 2014-09-30 21:37:16 UTC
Thank you so far for your hints. The suggestion can now be found in bugzilla on:
https://bugzilla.samba.org/show_bug.cgi?id=10847

I think you are right, that the bug can not (should not) be fixed in the emerge code, but in the rsync source.