Open
Conversation
Fix disk space to include purgeable space and use decimal divisor
Owner
|
Thanks, @huexley! (Mind submitting a PR to Mac Health Check ?) |
Contributor
Author
|
You are welcome, this tool is a blessing ! |
Contributor
Author
|
With the same fix ? Sure I’ll do it tomorrow, I’m sick with the flu, so I
have time to nerd stuff out.
Regards !
Le sam. 28 mars 2026 à 10:47, Dan K. Snelson ***@***.***> a
écrit :
… *dan-snelson* left a comment (dan-snelson/DDM-OS-Reminder#80)
<#80?email_source=notifications&email_token=ADFHSJ2KA2FRVR7DDXIOF5L4S6NSTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJUG43TGNRQG43KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJNLQOJPWG33NNVSW45C7N5YGK3S7MNWGSY3L#issuecomment-4147736076>
Thanks, @huexley <https://github.com/huexley>!
(Mind submitting a PR to Mac Health Check
<https://github.com/dan-snelson/Mac-Health-Check/tree/development> ?)
—
Reply to this email directly, view it on GitHub
<#80?email_source=notifications&email_token=ADFHSJ2KA2FRVR7DDXIOF5L4S6NSTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJUG43TGNRQG43KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJNLQOJPWG33NNVSW45C7N5YGK3S7MNWGSY3L#issuecomment-4147736076>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFHSJ2T36BVR6X572423ET4S6NSTAVCNFSM6AAAAACXC7LV7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCNBXG4ZTMMBXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Owner
|
If you're ill, I'll work on today; hope you feel better soon. |
Contributor
Author
|
Don't worry, that'll keep me busy!
…On Sat, Mar 28, 2026 at 9:54 PM Dan K. Snelson ***@***.***> wrote:
*dan-snelson* left a comment (dan-snelson/DDM-OS-Reminder#80)
<#80?email_source=notifications&email_token=ADFHSJ335ZP2RQEZ4DT65JL4TA3YLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJUHA3TSNJYGMZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJNLQOJPWG33NNVSW45C7N5YGK3S7MNWGSY3L#issuecomment-4148795832>
If you're ill, I'll work on today; hope you feel better soon.
—
Reply to this email directly, view it on GitHub
<#80?email_source=notifications&email_token=ADFHSJ335ZP2RQEZ4DT65JL4TA3YLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJUHA3TSNJYGMZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJNLQOJPWG33NNVSW45C7N5YGK3S7MNWGSY3L#issuecomment-4148795832>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFHSJ2S5734FYF2WEH2SAD4TA3YLAVCNFSM6AAAAACXC7LV7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCNBYG44TKOBTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Owner
|
Sorry for any Dan-induced confusion … I've already started; you can focus on getting better. |
Owner
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
diskutil info /reports incorrect free disk space on Macs with localTime Machine snapshots or iCloud cache, because it ignores purgeable space.
Additionally, the binary divisor
1,073,741,824(GiB) does not matchmacOS/Finder display conventions which use
1,000,000,000(GB decimal).Example on affected Mac
diskutil info /→ 36 GB freeFix
Replace
diskutil info /withNSURLVolumeAvailableCapacityForImportantUsageKeyvia JXA (JavaScript for Automation), which matches the Finder calculation exactly.
Switch divisor to
1,000,000,000to align with macOS display conventions.Tested on