diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-06-15 09:36:13 -0500 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-15 09:36:13 -0500 |
commit | d20f28db6212090f174e828f766871e68cf84c11 (patch) | |
tree | 7ac8b7fe83f729678847fea57090d849baad0a96 /usr/local/www/status_queues.php | |
parent | 98e7d680f957424cea4ff2c2cb67f85826c2c45f (diff) | |
parent | 6c07db487164262f9191ad02805523bd153e0ba6 (diff) | |
download | pfsense-d20f28db6212090f174e828f766871e68cf84c11.zip pfsense-d20f28db6212090f174e828f766871e68cf84c11.tar.gz |
Merge pull request #1721 from phil-davis/style
Diffstat (limited to 'usr/local/www/status_queues.php')
-rw-r--r-- | usr/local/www/status_queues.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php index 1022dcc..42789bf 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"); ?> |