]> granicus.if.org Git - php/commitdiff
fixed memory_peak resetting
authorThies C. Arntzen <thies@php.net>
Sun, 16 Sep 2001 15:45:25 +0000 (15:45 +0000)
committerThies C. Arntzen <thies@php.net>
Sun, 16 Sep 2001 15:45:25 +0000 (15:45 +0000)
sapi/apache/mod_php4.c

index 5afb92e66f57f8f47046dfa721f30dedc6130b7f..bb4b2a30b424d9ecbb4687f0eb46c2eaed55e5fe 100644 (file)
@@ -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