mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Fix large cache support on amd64 arch
Conflicts: src/preferences/preferences.cpp
This commit is contained in:
parent
f6634ccacd
commit
a3710251a7
1 changed files with 2 additions and 2 deletions
|
@ -993,7 +993,7 @@ public:
|
||||||
|
|
||||||
// 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;
|
||||||
|
@ -1012,7 +1012,7 @@ public:
|
||||||
void setDiskCacheSize(uint size) {
|
void 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