mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Remove "Physical memory (RAM) usage limit" option on Linux
Memory working set limit is not effective on Linux at all. See [`getrlimit(2)`](https://man7.org/linux/man-pages/man2/getrlimit.2.html) → `RLIMIT_RSS`. Introduced in #16874, disabled for macOS in #19805. This PR hides the option for Linux too. Worth to mention that #19805 did not deliver the change for WebUI. So there is also a small fixup, I covered both cases. Also removed pointless "This option is less effective on Linux" remark. PR #22680.
This commit is contained in:
@@ -1159,7 +1159,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
<label for="memoryWorkingSetLimit">QBT_TR(Physical memory (RAM) usage limit:)QBT_TR[CONTEXT=OptionsDialog] <a href="https://wikipedia.org/wiki/Working_set" target="_blank">(?)</a></label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="memoryWorkingSetLimit" style="width: 15em;" title="QBT_TR(This option is less effective on Linux)QBT_TR[CONTEXT=OptionsDialog]"> QBT_TR(MiB)QBT_TR[CONTEXT=OptionsDialog]
|
||||
<input type="text" id="memoryWorkingSetLimit" style="width: 15em;"> QBT_TR(MiB)QBT_TR[CONTEXT=OptionsDialog]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -3164,6 +3164,9 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
document.getElementById("diskIOWriteModeWriteThrough").style.display = "none";
|
||||
}
|
||||
|
||||
if ((buildInfo.platform === "linux") || (buildInfo.platform === "macos"))
|
||||
document.getElementById("rowMemoryWorkingSetLimit").style.display = "none";
|
||||
|
||||
if ((buildInfo.platform !== "macos") && (buildInfo.platform !== "windows"))
|
||||
document.getElementById("rowMarkOfTheWeb").style.display = "none";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user