diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-07 17:09:21 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-07 17:10:31 -0500 |
commit | 55a9ca071b7a205c2331c0275d73d7d60f8c752d (patch) | |
tree | aa328b99f5105718b50ead92542b961dd2eb231e /src | |
parent | f2c719c995f76f2ffd0b89aa8b8f30ac403291e3 (diff) | |
download | pfsense-55a9ca071b7a205c2331c0275d73d7d60f8c752d.zip pfsense-55a9ca071b7a205c2331c0275d73d7d60f8c752d.tar.gz |
status_queues.php, default packet_s to 0 if it falls through to that point. Ticket #6329
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/status_queues.php | 3 |
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}%');"; |