[TC 11.02-11.03rc1] Wrong folder size reported

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
AtomixPlayer
New Member
New Member
Posts: 1
Joined: 2024-01-19, 08:57 UTC

[TC 11.02-11.03rc1] Wrong folder size reported

Post by *AtomixPlayer »

Up to and including TC v11.01 the total folder size (calculated in bytes) is correctly reported in the footer, as shown in this example (total size of the folder equals the adding up of the sub-folders size):
Image: https://i.postimg.cc/8PCmHZZn/TCmd-11-01-OK.jpg

As of TC v11.02 (and incl. the new TC 11.03 rc1) the total folder size (calculated in bytes) is incorrectly reported in the footer (it seems the TC adds the number of non-empty folders to the total size):
Image: https://i.postimg.cc/TYHqHnS2/TCmd-11-02-Wrong.jpg

This issue affects both 32-bit and 64-bit versions of Total Commander.
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.02-11.03rc1] Wrong folder size reported

Post by *AntonyD »

Confirmed... suddenly....
#146217 personal license
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.02-11.03rc1] Wrong folder size reported

Post by *petermad »

Confirmed!
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.02-11.03rc1] Wrong folder size reported

Post by *ghisler(Author) »

Confirmed - it seems to happen because "unknown size" is now stored as -1 bytes, so when the background thread adds the new size, the size changes from -1 to to actual value, and the difference is one byte too much...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.02-11.03rc1] Wrong folder size reported

Post by *petermad »

history.txt wrote:21.01.24 Fixed: Total size in footer was off by 1 byte per subdirectory after counting the sizes (32/64)
Confirmed fixed in TC 11.03rc2 :-)

Moderator message from: petermad » 2024-01-23, 19:40 UTC

Moved to "TC fixed bugs" from "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply