The calculation for folder compacting does not match size displayed in the user interface
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(Not tracked)
People
(Reporter: adrien.rybarczyk, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: dupeme)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
Steps to reproduce:
In the preferences tab,
"Compact all folders when it will save over MB in total"
does not seem to be correct with regard to the calculations in nsMsgDBFolder.cpp
Actual results:
if (totalExpungedBytes > ((int64_t)purgeThreshold * 1024)) {
totalExpungedBytes seems to be defined in bytes.
In the interface the field offlineCompactFolderMin seems to be expressed in kb, not mb.
Expected results:
Change the translation to "when it saves at least XXXX KB in total" or change the calculation.
PS: if the user has "Ask every time before compacting" unchecked, if ever the compacting is not done, a popup will be displayed to the user that the compacting could not be done.
While he had originally asked not to be notified.
Comment 1•3 years ago
|
||
There was a migration to using MB some versions ago. I think the code is right
https://searchfox.org/comm-central/rev/7ff2e028e5582fdbc9485b1188e33f83aa64d797/mailnews/base/src/nsMsgDBFolder.cpp#1900
| Reporter | ||
Comment 2•3 years ago
|
||
I just saw, yes it looks good.
However, for a 1024 MB setting, I have already had cases where the compacting is triggered and in the end saves 100 MB.
Comment 3•3 years ago
|
||
(In reply to adrien.rybarczyk from comment #2)
I just saw, yes it looks good.
However, for a 1024 MB setting, I have already had cases where the compacting is triggered and in the end saves 100 MB.
We've had issues reported where compacting is prematurely triggered.
Updated•2 years ago
|
Comment 4•1 year ago
|
||
Adrien,
Are you still seeing this with version 128 or newer?
| Reporter | ||
Comment 5•1 year ago
|
||
Yes, there are always cases where it displays an impossible amount of space to save
An example from today:
| Reporter | ||
Comment 6•1 year ago
|
||
| Reporter | ||
Comment 7•1 year ago
|
||
Comment 8•21 days ago
|
||
adrien, are you still seeing this issue?
Possible duplicate to Bug 1260698 - Compact folders - shows wrong estimated and compacted size. Compacts too often. totalExpungedBytes number is wrong.
| Reporter | ||
Comment 9•21 days ago
|
||
I haven't had any recent cases with impossible values.
However, I still have noticed differences between what's displayed in the popup and what's displayed in the gain once the compression is done.
Updated•7 days ago
|
Description
•