Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Enhances size output #34

Merged
merged 2 commits into from
Aug 21, 2017
Merged

Conversation

cftorres
Copy link
Contributor

fixes #31

Previously, all the size fields were strings representing bytes, but I thought it'd be better to leave them as ints in case any numerical analysis ever needed to be performed on them... Also, now I use the bytefmt library to be able to output those ints as B, MB, KB, etc. strings for the human-readable output instead of just bytes.

@nkubala @aaron-prindle

},
"libpython3.5-stdlib": {
"Version": "3.5.3-1",
"Size": "9896"
"Size": 10133504
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoa. what changed to make these results so different?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously these were in KB for the Apt differ but since the rest of the differs' sizes are in Bytes, and the new bytefmt library usage requires the input to be bytes, I converted them

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just seems like these numbers are pretty different. I trust the new method more though.

@cftorres cftorres merged commit c8053b7 into GoogleContainerTools:master Aug 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance human-readable size output
2 participants