Bug 997937 - Files Size between 1000 and 1023 shifts file name over.
Files Size between 1000 and 1023 shifts file name over.
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: tree (Show other bugs)
19
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-16 11:03 EDT by G. Michael Carter
Modified: 2014-02-03 08:56 EST (History)
1 user (show)

See Also:
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 08:56:23 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description G. Michael Carter 2013-08-16 11:03:45 EDT
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 11:36:49 EDT
I've increased the size column to 5 characters in tree-1.6.0-11.fc19.
Comment 2 Tim Waugh 2014-02-03 08:56:23 EST
Fixed in Fedora 20.

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