Skip to content
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

Changed how you allocate Ram in the launcher from percent to now mb and fix #329

Open
wants to merge 1 commit into
base: tauri_v1
Choose a base branch
from

Conversation

SamsonDE1
Copy link

I changed the launcher to now use mb to allocate and not do some fancy stuff and there was an small conversion bug right here: ((sys.total_memory() / **1000000**) as f64 * (memory_percentage as f64 / 100.0)) as i64.
2024-11-30-091424_hyprshot
2024-11-30-091339_hyprshot
This is my first pull request so im verry sorry about any errors I made.

…small issue where the system memory was not converetd correctly
Comment on lines +41 to +42
#[serde(rename = "systemMemory")]
pub system_memory: i64,
Copy link
Member

Choose a reason for hiding this comment

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

I think you should consider to re-add mem_percentage instead of storing the system memory inside the config.

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.

2 participants