diff options
| author | Brad Linden <brad@lindenlab.com> | 2024-06-28 12:44:41 -0700 | 
|---|---|---|
| committer | Brad Linden <brad@lindenlab.com> | 2024-06-28 12:44:41 -0700 | 
| commit | 7322623a6fe0e5120c07b720259e3beb325b097e (patch) | |
| tree | 8392378cbf228bb6ad899e3967e04d111cf60f2e /indra | |
| parent | c2fbd139c10408460d94a525b979420cdcfe021b (diff) | |
Fix pre-commit whitespace checks and merge PR secondlife/viewer#1874
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcommon/llmemory.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index b9f9fdae17..104c40f0d7 100644 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -86,7 +86,7 @@ void LLMemory::initMaxHeapSizeGB(F32Gigabytes max_heap_size)  void LLMemory::updateMemoryInfo()  {      LL_PROFILE_ZONE_SCOPED -    U32Kilobytes avail_phys;  +    U32Kilobytes avail_phys;  #if LL_WINDOWS      PROCESS_MEMORY_COUNTERS counters; @@ -99,7 +99,7 @@ void LLMemory::updateMemoryInfo()      sAllocatedMemInKB = U32Kilobytes::convert(U64Bytes(counters.WorkingSetSize));      sAllocatedPageSizeInKB = U32Kilobytes::convert(U64Bytes(counters.PagefileUsage));      sample(sVirtualMem, sAllocatedPageSizeInKB); -    U32Kilobytes avail_virtual;  +    U32Kilobytes avail_virtual;      LLMemoryInfo::getAvailableMemoryKB(avail_phys, avail_virtual) ;  #elif defined(LL_DARWIN) @@ -160,7 +160,7 @@ void LLMemory::updateMemoryInfo()  #endif      sample(sAllocatedMem, sAllocatedMemInKB);      // sMaxPhysicalMem - max this process can use = the lesser of (what we already have + what's available) or MaxHeap -    sMaxPhysicalMemInKB = llmin(avail_phys + sAllocatedMemInKB, sMaxHeapSizeInKB);  +    sMaxPhysicalMemInKB = llmin(avail_phys + sAllocatedMemInKB, sMaxHeapSizeInKB);      if(sMaxPhysicalMemInKB > sAllocatedMemInKB)      {  | 
