summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index a43f34ba12..0a83324c05 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -546,12 +546,12 @@ static int send_parsed_php(request_rec * r)
{
int result = send_php(r, 0, NULL);
-#if MEMORY_USAGE_INFO
+#if MEMORY_LIMIT
{
char mem_usage[ 32 ];
ALS_FETCH()
- sprintf(mem_usage,"%u", (int) AG(max_allocated_memory));
+ sprintf(mem_usage,"%u", (int) AG(allocated_memory_peak));
ap_table_setn(r->notes, "mod_php_memory_usage", ap_pstrdup(r->pool,mem_usage));
}
#endif