summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-07 17:09:21 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-07 17:10:31 -0500
commit55a9ca071b7a205c2331c0275d73d7d60f8c752d (patch)
treeaa328b99f5105718b50ead92542b961dd2eb231e
parentf2c719c995f76f2ffd0b89aa8b8f30ac403291e3 (diff)
downloadpfsense-55a9ca071b7a205c2331c0275d73d7d60f8c752d.zip
pfsense-55a9ca071b7a205c2331c0275d73d7d60f8c752d.tar.gz
status_queues.php, default packet_s to 0 if it falls through to that point. Ticket #6329
-rw-r--r--src/usr/local/www/status_queues.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usr/local/www/status_queues.php b/src/usr/local/www/status_queues.php
index e27b96f..52d6773 100644
--- a/src/usr/local/www/status_queues.php
+++ b/src/usr/local/www/status_queues.php
@@ -125,8 +125,7 @@ if ($_REQUEST['getactivity']) {
$packet_s = round(100 * ($q->pps / $bigger_stat), 0);
} else if ($bigger_stat != "0") {
$packet_s = round(100 * ($q->bandwidth / $bigger_stat), 0);
- }
- if ($packet_s < 0) {
+ } else {
$packet_s = 0;
}
$finscript .= "$('#queue{$q->queuename}width').css('width','{$packet_s}%');";
OpenPOWER on IntegriCloud