summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
committerPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
commit6c07db487164262f9191ad02805523bd153e0ba6 (patch)
tree0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/status_queues.php
parent67d9685607eef7c679fda929ad4855be1b2f9dec (diff)
downloadpfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip
pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz
Code spacing
and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
Diffstat (limited to 'usr/local/www/status_queues.php')
-rw-r--r--usr/local/www/status_queues.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php
index 1f5e45d..fd953f8 100644
--- a/usr/local/www/status_queues.php
+++ b/usr/local/www/status_queues.php
@@ -68,7 +68,7 @@ if (!$fd) {
$error = "Something wrong happened during communication with stat gathering";
} else {
$stats = "";
- while(!feof($fd)) {
+ while (!feof($fd)) {
$stats .= fread($fd, 4096);
}
fclose($fd);
@@ -87,16 +87,13 @@ if ($_REQUEST['getactivity']) {
statsQueues($q);
}
/* calculate the bigger amount of packets or bandwidth being moved through all queues. */
- if ($stat_type == "0")
- {
+ if ($stat_type == "0") {
foreach ($statistics as $q) {
if ($bigger_stat < $q->pps) {
$bigger_stat = $q->pps;
}
}
- }
- else
- {
+ } else {
foreach ($statistics as $q) {
if ($bigger_stat < $q->bandwidth) {
$bigger_stat = $q->bandwidth;
@@ -115,7 +112,7 @@ if ($_REQUEST['getactivity']) {
}
$finscript .= "jQuery('#queue{$q->queuename}widthb').width('{$packet_s}');";
$finscript .= "jQuery('#queue{$q->queuename}widtha').width('" . (150 - $packet_s) . "');";
- $finscript .= "jQuery('#queue{$q->queuename}pps').val('" . number_format($q->pps,1) . "');";
+ $finscript .= "jQuery('#queue{$q->queuename}pps').val('" . number_format($q->pps, 1) . "');";
$finscript .= "jQuery('#queue{$q->queuename}bps').val('" . format_bits($q->bandwidth) . "');";
$finscript .= "jQuery('#queue{$q->queuename}borrows').val('{$q->borrows}');";
$finscript .= "jQuery('#queue{$q->queuename}suspends').val('{$q->suspends}');";
@@ -127,7 +124,7 @@ if ($_REQUEST['getactivity']) {
echo $finscript;
exit;
}
-$pgtitle = array(gettext("Status"),gettext("Traffic shaper"),gettext("Queues"));
+$pgtitle = array(gettext("Status"), gettext("Traffic shaper"), gettext("Queues"));
$shortcut_section = "trafficshaper";
include("head.inc");
?>
OpenPOWER on IntegriCloud