From 993813772565cceaebf51b6fcd1a2ebfcc6b25cc Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Sun, 16 Sep 2001 15:45:25 +0000 Subject: fixed memory_peak resetting --- sapi/apache/mod_php4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 5afb92e66f..bb4b2a30b4 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -595,7 +595,9 @@ static int send_parsed_php(request_rec * r) TSRMLS_FETCH(); sprintf(mem_usage,"%u", (int) AG(allocated_memory_peak)); + AG(allocated_memory_peak)=0; ap_table_setn(r->notes, "mod_php_memory_usage", ap_pstrdup(r->pool, mem_usage)); + } #endif -- cgit v1.2.1