From 8a2967494837404b7b845d262b0d6330706f301e Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 15 Dec 2012 04:43:14 -0800 Subject: [PATCH] Improved display of Traffic debug stats. --- e107_handlers/traffic_class_display.php | 34 ++++++++++++++++--------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/e107_handlers/traffic_class_display.php b/e107_handlers/traffic_class_display.php index 37d1d1af1..1fdc7c87d 100644 --- a/e107_handlers/traffic_class_display.php +++ b/e107_handlers/traffic_class_display.php @@ -24,11 +24,14 @@ if (!defined('e107_INIT')) { exit; } // if (count($this->aTraffic)) { // Simple counts - $text .= "\n\n"; - $text .= " - - - \n"; + $text .= "\n
ItemCount  
\n"; + $text .= " + + + + + + \n"; foreach ($this->aTraffic as $key=>$aVals) { $text .= "
ItemCount  
". @@ -58,13 +61,20 @@ if (!defined('e107_INIT')) { exit; } // Fancy timed counts // if (count($this->aTrafficTimed)) { - $text .= "\n\n"; - $text .= " - - - - - \n"; + $text .= "\n
ItemCount Tot Time (ms) Avg Time (us) Min Time (us) Max Time (us) 
\n"; + $text .= " + + + + + + + + + + \n"; + + foreach ($this->aTrafficTimed as $key=>$aVals) { if (substr($key,0,8)=='TRAF_CAL') continue; $text .= "
ItemCount Tot Time (ms) Avg Time (us) Min Time (us) Max Time (us)