mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 13:53:37 -07:00
Merge pull request #1947 from Gelmir/x64_cache_fix
Fix large cache support on amd64 arch
This commit is contained in:
commit
88baa710fd
1 changed files with 2 additions and 2 deletions
|
@ -1112,7 +1112,7 @@ uint Preferences::diskCacheSize() const {
|
||||||
|
|
||||||
// When build as 32bit binary, set the maximum at less than 2GB to prevent crashes.
|
// When build as 32bit binary, set the maximum at less than 2GB to prevent crashes.
|
||||||
// These macros may not be available on compilers other than MSVC and GCC
|
// These macros may not be available on compilers other than MSVC and GCC
|
||||||
#if !defined(_M_X64) || !defined(__amd64__)
|
#if !defined(_M_X64) && !defined(__amd64__)
|
||||||
//1800MiB to leave 248MiB room to the rest of program data in RAM
|
//1800MiB to leave 248MiB room to the rest of program data in RAM
|
||||||
if (size > 1800)
|
if (size > 1800)
|
||||||
size = 1800;
|
size = 1800;
|
||||||
|
@ -1128,7 +1128,7 @@ uint Preferences::diskCacheSize() const {
|
||||||
void Preferences::setDiskCacheSize(uint size) {
|
void Preferences::setDiskCacheSize(uint size) {
|
||||||
uint size0 = size;
|
uint size0 = size;
|
||||||
|
|
||||||
#if !defined(_M_X64) || !defined(__amd64__)
|
#if !defined(_M_X64) && !defined(__amd64__)
|
||||||
//1800MiB to leave 248MiB room to the rest of program data in RAM
|
//1800MiB to leave 248MiB room to the rest of program data in RAM
|
||||||
if (size0 > 1800)
|
if (size0 > 1800)
|
||||||
size0 = 1800;
|
size0 = 1800;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue