Bug 997937

Summary: Files Size between 1000 and 1023 shifts file name over.
Product: [Fedora] Fedora Reporter: G. Michael Carter <mikey>
Component: treeAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tree-1.6.0-11.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 13:56:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description G. Michael Carter 2013-08-16 15:03:45 UTC
This is just a minor irritation but didn't know how to send this upstream as a suggestion.

[whitestar ~]$ tree -CDh MyTree
MyTree
|-- [1.0G Aug 14  0:34]  file00.txt
|-- [987M Aug 14  0:41]  file04.txt
|-- [1001M Aug 14  0:46]  file05.txt
|-- [ 92M Aug 14  0:59]  file07.txt
|-- [217M Aug 14  1:00]  file08.txt


When the file size is reported in human readable form it normally takes up 4 characters.  Except when the filesize is between 1000 and 1023.   Which messes up the nice even formatting by shifting the file name and date over by one character.   What I suggest is for the size column to 5 characters or round up when it's between 1000 and 1023.

Comment 1 Tim Waugh 2013-08-16 15:36:49 UTC
I've increased the size column to 5 characters in tree-1.6.0-11.fc19.

Comment 2 Tim Waugh 2014-02-03 13:56:23 UTC
Fixed in Fedora 20.