From 900b32f06ecc0b29b8c28ce46796d66267cb36fc Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 7 Apr 2012 17:17:18 +0000 Subject: [PATCH] silly php git-svn-id: http://www.observium.org/svn/observer/trunk@2976 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/index.php b/html/index.php index 6966dfa94b..304d3e467b 100755 --- a/html/index.php +++ b/html/index.php @@ -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('
Cached data in memory is '.formatStorage($cachesize).'. Page memory usage is '.formatStorage($fullsize).', peaked at '. formatStorage(memory_get_peak_usage()) .'.');