Bug 997937 - Files Size between 1000 and 1023 shifts file name over.
Summary: Files Size between 1000 and 1023 shifts file name over.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tree
Version: 19
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-16 15:03 UTC by G. Michael Carter
Modified: 2014-02-03 13:56 UTC (History)
1 user (show)

Fixed In Version: tree-1.6.0-11.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 13:56:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.