Skip to content

Commit 585410d

Browse files
author
Zachary Canann
committed
Fix max heap size displays
1 parent a4dd03a commit 585410d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,11 @@ private void BuildHeapVisualizationsFromCMem()
740740

741741
if (usedMemory + freeMemory < 65535)
742742
{
743-
memoryUsage = String.Format("Mem (b): {0} / {1} (b)", usedMemory, heap.heapSize); // usedMemory + freeMemory
743+
memoryUsage = String.Format("Mem (b): {0} / {1} (b)", usedMemory, this.GetHeapSize(heapIndex)); // usedMemory + freeMemory
744744
}
745745
else
746746
{
747-
memoryUsage = String.Format("Mem: {0} / {1} (kb)", usedMemory / 1024, (heap.heapSize) / 1024);
747+
memoryUsage = String.Format("Mem: {0} / {1} (kb)", usedMemory / 1024, this.GetHeapSize(heapIndex) / 1024);
748748
}
749749

750750

0 commit comments

Comments
 (0)