Skip to content

Auto-scale device Size/Used/Free in Icon Info requester#158

Merged
midwan merged 2 commits into
masterfrom
issue-140-icon-info-scaling
Jun 2, 2026
Merged

Auto-scale device Size/Used/Free in Icon Info requester#158
midwan merged 2 commits into
masterfrom
issue-140-icon-info-scaling

Conversation

@midwan

@midwan midwan commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator
  • The Icon Info requester (Information on a device/disk icon) displayed disk Size/Used/Free as raw kilobytes (e.g.
    7,824,746K). It now auto-scales to K/M/G/T with one decimal place via the existing BytesToString/BytesToString64
    helpers — the same formatting already used by the lister title bar, device list, and DiskInfo module.
  • Replaced the manual >> 10 + "K" formatting in the three disk blocks of source/Modules/icon/icon.c.
  • Added a source-level regression test (source/Modules/icon/tests/test_icon_disk_scaling.py) following the repo's
    existing unittest convention.

Also includes a small housekeeping commit ignoring the local docs/superpowers scratch directory.

Closes #140.

Note: a RAM disk under 4 MB still shows in K (the shared scaler only switches to M above 4 MB), consistent with the rest of DOpus5.

@midwan
midwan merged commit 350ab8a into master Jun 2, 2026
@midwan
midwan deleted the issue-140-icon-info-scaling branch June 2, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icon Info (device): Auto‑scaling storage values (kB → MB → GB)

1 participant