From 7c6b48a20defe21754c581e70ce642f8f0a0dfa1 Mon Sep 17 00:00:00 2001 From: vsc Date: Thu, 7 Mar 2002 05:38:20 +0000 Subject: [PATCH] in interrupt handler show the heap we use, not what we claim we use git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@400 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/sysbits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/sysbits.c b/C/sysbits.c index 5a6b857de..063d1a4a7 100644 --- a/C/sysbits.c +++ b/C/sysbits.c @@ -1113,7 +1113,7 @@ InteractSIGINT(int ch) { double frag = (100.0*(heap_space_taken-HeapUsed))/heap_space_taken; YP_fprintf(YP_stderr, "Code Space: %ld (%ld bytes used, fragmentation %.3f%%).\n", (unsigned long int)(Unsigned (AuxTop) - Unsigned (HeapBase)), - (unsigned long int)(HeapUsed), + (unsigned long int)(Unsigned(HeapTop)-Unsigned(HeapBase)), frag); YP_fprintf(YP_stderr, "Stack Space: %ld (%ld for Global, %ld for local).\n", (unsigned long int)(sizeof(CELL)*(LCL0-H0)),