Fix memdump printing
authorDale Weiler <killfieldengine@gmail.com>
Tue, 16 Apr 2013 09:13:22 +0000 (09:13 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Tue, 16 Apr 2013 09:13:22 +0000 (09:13 +0000)
util.c

diff --git a/util.c b/util.c
index 92f8e5e4405c0698d29171826826bf07910fe7ee..59be9bfd7c706ab6c4b83b418a22bd6e6dfee504 100644 (file)
--- a/util.c
+++ b/util.c
@@ -192,8 +192,8 @@ void util_meminfo() {
             Total peak memory:   %f (MB)\n\
             Total leaked memory: %f (MB) in %llu allocations\n",
                 mem_at,
             Total peak memory:   %f (MB)\n\
             Total leaked memory: %f (MB) in %llu allocations\n",
                 mem_at,
-                (float)(mem_dt)           / 1048576.0f,
-                mem_ab,
+                mem_dt,
+                (float)(mem_ab)           / 1048576.0f,
                 (float)(mem_db)           / 1048576.0f,
                 (float)(mem_pk)           / 1048576.0f,
                 (float)(mem_ab -  mem_db) / 1048576.0f,
                 (float)(mem_db)           / 1048576.0f,
                 (float)(mem_pk)           / 1048576.0f,
                 (float)(mem_ab -  mem_db) / 1048576.0f,