mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
[FIX] Ещё фиксы такового с RAM.
This commit is contained in:
parent
c820e7a406
commit
d50d2e22b8
3 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ var settingsOverlay = {
|
|||
settingsOverlay.updateRAMLabel();
|
||||
|
||||
var ramSlider = holder.lookup("#ramSlider");
|
||||
ramSlider.setMax(FunctionalBridge.getTotalMemory());
|
||||
ramSlider.setMax(FunctionalBridge.getJVMTotalMemory());
|
||||
ramSlider.setSnapToTicks(true);
|
||||
ramSlider.setShowTickMarks(true);
|
||||
ramSlider.setShowTickLabels(true);
|
||||
|
|
|
@ -327,7 +327,7 @@ public static Process launch(
|
|||
context.playerProfile = params.pp;
|
||||
context.args.add(javaBin.toString());
|
||||
context.args.add(MAGICAL_INTEL_OPTION);
|
||||
if (params.ram > 0 && params.ram <= FunctionalBridge.getTotalMemory()) {
|
||||
if (params.ram > 0 && params.ram <= FunctionalBridge.getJVMTotalMemory()) {
|
||||
context.args.add("-Xms" + params.ram + 'M');
|
||||
context.args.add("-Xmx" + params.ram + 'M');
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public String getMacAddr() {
|
|||
}
|
||||
|
||||
public long getTotalMemory() {
|
||||
if (noHWID) return 1024>>20;
|
||||
if (noHWID) return 1024<<20;
|
||||
if (hardware == null) hardware = systemInfo.getHardware();
|
||||
return hardware.getMemory().getTotal();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue