Skip to content

Commit

Permalink
Fix max heap size displays
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Canann committed Nov 12, 2022
1 parent a4dd03a commit 585410d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,11 @@ private void BuildHeapVisualizationsFromCMem()

if (usedMemory + freeMemory < 65535)
{
memoryUsage = String.Format("Mem (b): {0} / {1} (b)", usedMemory, heap.heapSize); // usedMemory + freeMemory
memoryUsage = String.Format("Mem (b): {0} / {1} (b)", usedMemory, this.GetHeapSize(heapIndex)); // usedMemory + freeMemory
}
else
{
memoryUsage = String.Format("Mem: {0} / {1} (kb)", usedMemory / 1024, (heap.heapSize) / 1024);
memoryUsage = String.Format("Mem: {0} / {1} (kb)", usedMemory / 1024, this.GetHeapSize(heapIndex) / 1024);
}


Expand Down

0 comments on commit 585410d

Please sign in to comment.