This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rounds 900 bytes to 0 kilobytes

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
vassapup
Junior Member
Junior Member


Joined: 12 Feb 2015
Posts: 13

PostPosted: Sun Oct 01, 2017 6:50 pm    Post subject: Rounds 900 bytes to 0 kilobytes Reply with quote

I'm using SizeFooter=3 (which means rounding to tenth), but when file size is less 1 kb it is always displayed as 0 kb at status line.
IMHO it is better to display bytes in status line with this key, because 0kb is not informative because it doesn't tell whether the file is empty or not.
Or even round every file size less than 0.1 kb to 0.1 kb (in order to indicate non-empty file).
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Mon Oct 02, 2017 2:29 am    Post subject: Reply with quote

This is not a bug, it's just a question of rounding. Currently TC rounds down (truncates) all values.

Alternatively, TC could round up/down, e.g. 0..511 bytes=0k, 512-1535 bytes=1k etc.

Or it could always round UP, as the Explorer does.

But this isn't defined anywhere - all 3 would be legit. I think that maybe I could add an option so the user can choose which method should be used. But unfortunately there isn't enough time now to add this to TC 9.10.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10685
Location: Bratislava, Slovakia

PostPosted: Mon Oct 02, 2017 5:40 am    Post subject: Reply with quote

Moderation:
Moved to the Suggestions forum.

Hacker (Moderator)

_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
Lefteous
Power Member
Power Member


Joined: 08 Feb 2003
Posts: 9389
Location: Germany

PostPosted: Mon Oct 02, 2017 11:05 am    Post subject: Reply with quote

The requested behavior can be achieved by using my content plugin DirSizeCalc.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group