[TC 11.03][TC 11.01] Disk size anomaly/bug?

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
mmichalll
Junior Member
Junior Member
Posts: 4
Joined: 2024-01-18, 16:01 UTC

[TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *mmichalll »

Hallo
I found interesting anomaly.

Screenshot are capped from TC 11.01 but same anomaly/bug hapend at 11.03

See screenshots of disk size:
If i use dynamic x.xx k/M/G/T, disk have more free space then showed disk capacity.
https://ibb.co/wzShbCT

If i use dynamic x.xx k/M/G is everhyting OK
https://ibb.co/Wzmnf2Y

Its no problem, only cosmetic anomaly, but seems weird to have more free space then disk actually have showed in TC in first settings x.xx k/M/G/T.

Thanks
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *Gral »

Did you set "SizeStyle1000=1" under [Configuration] section?
If not then everything is OK - binary 0.9 TB > 906 GB
NO BUG.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *ghisler(Author) »

Not a bug. 931 GB = 931/1024 TB=0.909 TB, truncated to 0.90 TB.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *AntonyD »

truncated to 0.90 TB.
why not mathematically converted to 0.91Tb?
#146217 personal license
mmichalll
Junior Member
Junior Member
Posts: 4
Joined: 2024-01-18, 16:01 UTC

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *mmichalll »

ghisler(Author) wrote: 2024-10-11, 09:54 UTC Not a bug. 931 GB = 931/1024 TB=0.909 TB, truncated to 0.90 TB.
I was thinking about the numbers, thei are rounded off and shortened or something like that.
Thanks for explenation
But seems wierd if free space is biger then actual disk size.
I have startet using x.xx k/M/G only
Gral wrote: 2024-10-11, 00:48 UTC Did you set "SizeStyle1000=1" under [Configuration] section?
If not then everything is OK - binary 0.9 TB > 906 GB
No i didt set this in config.
Thanks for tip

Can be closed
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *petermad »

TB=0.909 TB, truncated to 0.90 TB.
As AntonyD also says - why truncating instead of rounding?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *Usher »

Because MS do truncate.
To be more serious, you should never show more free space than it's really available. Otherwise you will get annoiyng copy errors.
Andrzej P. Wozniak
Polish subforum moderator
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *JOUBE »

petermad wrote: 2024-10-11, 20:49 UTC why truncating instead of rounding?
(or->of: misspelling corrected)
Usher wrote: 2024-10-11, 21:51 UTC To be more serious, you should never show more free space than it's really available.
That's it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03][TC 11.01] Disk size anomaly/bug?

Post by *ghisler(Author) »

why not mathematically converted to 0.91Tb?
I will consider it.

Moderator message

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
Post Reply