Skip to content

Fix MacOS memory calculation in MB instead of bytes#14

Open
3ripleM wants to merge 1 commit into
advanced-security:mainfrom
3ripleM:patch-1
Open

Fix MacOS memory calculation in MB instead of bytes#14
3ripleM wants to merge 1 commit into
advanced-security:mainfrom
3ripleM:patch-1

Conversation

@3ripleM
Copy link
Copy Markdown

@3ripleM 3ripleM commented Nov 14, 2025

Problem

Running codeql-scan would fail when creating/analyzing the database, because they are using a memory function

Tracing the issue

Running sysctl -n hw.memsize prints total memory in bytes where the script is using memory in MB

Solution

Converting byte value to MB in darwin OS

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.

1 participant