mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix Flame recommended RAM check
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
This commit is contained in:
parent
b0f7ae1223
commit
68efc9b9df
1 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,7 @@ std::unique_ptr<MinecraftInstance> FlameCreationTask::createInstance()
|
||||||
int recommendedRAM = m_pack.minecraft.recommendedRAM;
|
int recommendedRAM = m_pack.minecraft.recommendedRAM;
|
||||||
|
|
||||||
// only set memory if this is a fresh instance
|
// only set memory if this is a fresh instance
|
||||||
if (m_instance == nullptr && recommendedRAM > 0) {
|
if (!m_instance && recommendedRAM > 0) {
|
||||||
const uint64_t sysMiB = HardwareInfo::totalRamMiB();
|
const uint64_t sysMiB = HardwareInfo::totalRamMiB();
|
||||||
const uint64_t max = sysMiB * 0.9;
|
const uint64_t max = sysMiB * 0.9;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue