From 612e93be6a37eac3f270ae539c4e2e733761ae8b Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Fri, 12 Jun 2020 15:53:45 +0300 Subject: [PATCH] Fix --- src/debug_allocator.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug_allocator.zig b/src/debug_allocator.zig index 96aab0d..278a868 100644 --- a/src/debug_allocator.zig +++ b/src/debug_allocator.zig @@ -56,7 +56,7 @@ pub const AllocationInfo = struct { return std.fmt.format( out_stream, \\------------------------------------------ Allocation info ------------------------------------------ - \\{} total allocations (total: {d:.2}, mean: {d:.2} MB, std. dev: {d:.2} MB), {} deallocations + \\{} total allocations (total: {d:.2} MB, mean: {d:.2} MB, std. dev: {d:.2} MB), {} deallocations \\{} current allocations ({d:.2} MB), peak mem usage: {d:.2} MB \\{} reallocations (total: {d:.2} MB, mean: {d:.2} MB, std. dev: {d:.2} MB) \\{} shrinks (total: {d:.2} MB, mean: {d:.2} MB, std. dev: {d:.2} MB) @@ -64,7 +64,7 @@ pub const AllocationInfo = struct { , .{ self.allocation_stats.count, - self.allocation_stats.total, + toMB(self.allocation_stats.total), toMB(self.allocation_stats.mean), toMB(self.allocation_stats.stdDev()), self.deallocation_count,