Skip to content

improve waveform cache size display format - #15578

Merged
ronso0 merged 1 commit into
mixxxdj:mainfrom
mxmilkiib:feature/2025.11nov.05-waveform-cache-size-format
Feb 16, 2026
Merged

improve waveform cache size display format#15578
ronso0 merged 1 commit into
mixxxdj:mainfrom
mxmilkiib:feature/2025.11nov.05-waveform-cache-size-format

Conversation

@mxmilkiib

Copy link
Copy Markdown
Contributor

changes the waveform cache size display to automatically use GiB when the size is >= 1024 MiB for better readability.

before: "52533.06 MiB"
after: "51.30 GiB"

the format still shows MiB for smaller caches (< 1 GiB).

fixes #14874

@mxmilkiib

Copy link
Copy Markdown
Contributor Author

hmmmm

 -- Downloading file https://downloads.mixxx.org/dependencies/2.6-rel/macOS/mixxx-deps-2.6-x64-osx-rel-da4c207.zip to /Users/runner/buildenv ...
-- [download 0% complete]
-- Verify SHA256 of downloaded file /Users/runner/buildenv/mixxx-deps-2.6-x64-osx-rel-da4c207.zip ...
CMake Error at CMakeLists.txt:117 (message):
  SHA256 checksum mismatch:

  expected: 5e7f9a4d5d58a3b720a64d179f9cf72dab109460e74e9e31e9c2ada0885bb4a0

       got: 32a060d7619c4cdc0d9394e187d0a21784b10c438db440d49faba43e98af69c7


-- Configuring incomplete, errors occurred!

and more than once. what would cause that form of failure?

@mxmilkiib

Copy link
Copy Markdown
Contributor Author

does the test confit need a fix, or would that have been a temporary glitch? can someone please trigger the testing again?

@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from f7f977d to c1a1d2d Compare November 6, 2025 07:07
Comment thread src/preferences/dialog/dlgprefwaveform.cpp Outdated
@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from 9c32c8d to af5281d Compare November 15, 2025 17:55

@Swiftb0y Swiftb0y left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Would you mind squashing the three commits into a single one?

@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from 6be77ee to bacc6fc Compare January 30, 2026 03:29
@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch 2 times, most recently from 1d98c9d to 1a47ac7 Compare February 8, 2026 14:57
mxmilkiib pushed a commit to mxmilkiib/mixxx that referenced this pull request Feb 8, 2026
@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from 1a47ac7 to 015c0d3 Compare February 9, 2026 07:36

@ronso0 ronso0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fixup, looks good.

Just dropped a comment about the units/prefixes

QString sizeMebibytes = QString::number(
numBytes / (1024.0 * 1024.0), 'f', 2);

QString sizeText = QLocale().formattedDataSize(numBytes);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we only need a precision of 1, and --personally-- I'd prefer the old format with SI prefixes (kB, MB, GB), see https://doc.qt.io/qt-6/qlocale.html#DataSizeFormat-enum
just because it's used on all (major) marketplaces and even in Mixxx conversations I never encountered the new IEC prefixes (kiB, MiB, GiB)

Wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh i can live with that, cool

@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from 015c0d3 to b187977 Compare February 14, 2026 01:30
@mxmilkiib
mxmilkiib force-pushed the feature/2025.11nov.05-waveform-cache-size-format branch from b187977 to a3a2692 Compare February 14, 2026 07:30

@ronso0 ronso0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ronso0
ronso0 merged commit a3a4bc4 into mixxxdj:main Feb 16, 2026
15 checks passed
acolombier pushed a commit to acolombier/mi3x that referenced this pull request Feb 17, 2026
…-waveform-cache-size-format

improve waveform cache size display format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change up waveform cache size measurement format with > GiB?

3 participants