8000 Implement system statistic functions into `@lute/system` by CompeyDev · Pull Request #283 · luau-lang/lute · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement system statistic functions into @lute/system #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

< 8000 a href="#issue-comment-box" class="py-1">Jump to bottom
Merged
merged 7 commits into from
May 22, 2025

Conversation

CompeyDev
Copy link
Contributor

Closes #194.

CompeyDev added 2 commits May 17, 2025 08:50
Specifically, implements `system.freememory()`, `system.totalmemory()`,
`system.hostname()`, `system.uptime()`.

Memory related methods return unsigned 64 bit integers, which cannot be
translated correctly to Luau numbers, which leads to an overflow. Need
to fix this before this is merged.
@CompeyDev CompeyDev marked this pull request as ready for review May 19, 2025 11:30
lua_pushnumber(L, uptime);

return 1;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
}
}

@aatxe aatxe merged commit 5af8715 into luau-lang:primary May 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

system.freememory(), system.totalmemory(), system.hostname(), system.uptime() APIs.
3 participants
0