From 585410d4b8dac81dec490d3c595774b8dfe88a66 Mon Sep 17 00:00:00 2001 From: Zachary Canann Date: Fri, 11 Nov 2022 23:56:33 -0800 Subject: [PATCH] Fix max heap size displays --- Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs b/Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs index b3e9c44..686d905 100644 --- a/Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs +++ b/Twilight/Source/HeapVisualizer/HeapVisualizerViewModel.cs @@ -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); }