silly php

git-svn-id: http://www.observium.org/svn/observer/trunk@2976 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans 2012-04-07 17:17:18 +00:00
parent 141b14aa16
commit 900b32f06e

View File

@ -303,6 +303,7 @@ if ($config['page_gen'])
$fullsize = memory_get_usage();
unset($cache);
$cachesize = $fullsize - memory_get_usage();
if ($cachesize < 0) { $cachesize = 0; } // Silly PHP!
echo('<br />Cached data in memory is '.formatStorage($cachesize).'. Page memory usage is '.formatStorage($fullsize).', peaked at '. formatStorage(memory_get_peak_usage()) .'.');