Skip to content

Commit

Permalink
Improved display of Traffic debug stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Dec 15, 2012
1 parent 5507540 commit 8a29674
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions e107_handlers/traffic_class_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@
//

if (count($this->aTraffic)) { // Simple counts
$text .= "\n<table class='fborder'>\n";
$text .= "<tr><td class='fcaption' style='width:15%'>Item</td>
<td class='fcaption' style='text-align:right;width:15%'>Count&nbsp;</td>
<td class='fcaption'>&nbsp;</td>
</tr>\n";
$text .= "\n<table class='fborder table table-condensed table-striped'>\n";
$text .= "<thead>
<tr>
<th class='fcaption' style='width:15%'>Item</th>
<th class='fcaption' style='text-align:right;width:15%'>Count&nbsp;</th>
<th class='fcaption'>&nbsp;</th>
</tr>
</thead>\n";
foreach ($this->aTraffic as $key=>$aVals) {
$text .= "<tr>
<td class='forumheader3'>".
Expand Down Expand Up @@ -58,13 +61,20 @@
// Fancy timed counts
//
if (count($this->aTrafficTimed)) {
$text .= "\n<table class='fborder'>\n";
$text .= "<tr><td class='fcaption'>Item</td><td class='fcaption'>Count&nbsp;</td>
<td class='fcaption'>Tot Time (ms)&nbsp;</td>
<td class='fcaption'>Avg Time (us)&nbsp;</td>
<td class='fcaption'>Min Time (us)&nbsp;</td>
<td class='fcaption'>Max Time (us)&nbsp;</td>
</tr>\n";
$text .= "\n<table class='fborder table table-condensed table-striped'>\n";
$text .= "
<thead>
<tr>
<th class='fcaption'>Item</th>
<th class='fcaption'>Count&nbsp;</th>
<th class='fcaption'>Tot Time (ms)&nbsp;</th>
<th class='fcaption'>Avg Time (us)&nbsp;</th>
<th class='fcaption'>Min Time (us)&nbsp;</th>
<th class='fcaption'>Max Time (us)&nbsp;</th>
</tr>
</thead>\n";


foreach ($this->aTrafficTimed as $key=>$aVals) {
if (substr($key,0,8)=='TRAF_CAL') continue;
$text .= "<tr>
Expand Down

0 comments on commit 8a29674

Please sign in to comment.