Skip to content

Commit

Permalink
Convert mem. perc. setting to mb from kb
Browse files Browse the repository at this point in the history
  • Loading branch information
keastrid committed Jun 3, 2022
1 parent 51a21bc commit 7e5d1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/launch_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl LauncherConfig {
if let Some(mem_per) = self.max_mem_percent {
let has_xmx = out.iter().any(|s| s.starts_with("-Xmx"));
if !has_xmx {
out.push(format!("-Xmx{}k", get_max_heap(mem_per)))
out.push(format!("-Xmx{}m", (get_max_heap(mem_per)) / 1000))
}
}

Expand Down

0 comments on commit 7e5d1cc

Please sign in to comment.