Skip to content

Commit

Permalink
Allow memory pool for media to be larger on systems with > 8GiB of RAM.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed Aug 21, 2023
1 parent 05b98e2 commit 3fed169
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions netwerk/cache2/CacheObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ uint32_t CacheObserver::MemoryCacheCapacity() {
if (x > 0) {
// 0.1 is added here for rounding
capacity = (int32_t)(x * x / 3.0 + x + 2.0 / 3 + 0.1);
if (capacity > 32) {
capacity = 32;
}
// Allow cache to be higher for systems with > 8GiB of RAM
// if (capacity > 32) {
// capacity = 32;
// }
capacity <<= 10;
}
return capacity;
Expand Down

0 comments on commit 3fed169

Please sign in to comment.