diff options
author | Zeev Suraski <zeev@php.net> | 2001-05-16 15:02:30 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-05-16 15:02:30 +0000 |
commit | 260b4d0dbf7ab775be6dff25b977e206fbd66b8f (patch) | |
tree | c255b91c81a034dc9625562a7901581a69590c7d /sapi/apache/mod_php4.c | |
parent | 28a441fe02162916496279f62376aebd329c3b32 (diff) | |
download | php-git-260b4d0dbf7ab775be6dff25b977e206fbd66b8f.tar.gz |
Merge memory usage into memory limit
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r-- | sapi/apache/mod_php4.c | 4 |
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 |