summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-02-09 17:18:16 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-02-09 17:18:44 -0500
commit625c4a8b5ba0c1137c639fe7496fbd27b33b984b (patch)
tree98f2f0057ba126e1aafac71533a66ed52de54508 /src/usr/local/www/status_queues.php
parentb1567b5b6f3ec007a8340b031300f36bfa7feded (diff)
downloadpfsense-625c4a8b5ba0c1137c639fe7496fbd27b33b984b.zip
pfsense-625c4a8b5ba0c1137c639fe7496fbd27b33b984b.tar.gz
Fixed #5867
Diffstat (limited to 'src/usr/local/www/status_queues.php')
-rw-r--r--src/usr/local/www/status_queues.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/usr/local/www/status_queues.php b/src/usr/local/www/status_queues.php
index 34f3ba3..6b824ef 100644
--- a/src/usr/local/www/status_queues.php
+++ b/src/usr/local/www/status_queues.php
@@ -145,19 +145,19 @@ if ($_REQUEST['getactivity']) {
$pgtitle = array(gettext("Status"), gettext("Traffic shaper"), gettext("Queues"));
$shortcut_section = "trafficshaper";
include("head.inc");
-?>
-<script src="/jquery/jquery-1.11.2.min.js"></script>
-<?php
+
if (!is_array($config['shaper']['queue']) || count($config['shaper']['queue']) < 1) {
print_info_box(gettext("Traffic shaping is not configured."));
include("foot.inc");
exit;
}
-?>
-<?php if (!$error): ?>
+
+if (!$error): ?>
<form action="status_queues.php" method="post">
<script type="text/javascript">
//<![CDATA[
+events.push(function() {
+
function getqueueactivity() {
var url = "/status_queues.php";
var pars = "getactivity=yes&stats=" + $("#selStatistic").val();
@@ -169,12 +169,15 @@ if (!is_array($config['shaper']['queue']) || count($config['shaper']['queue']) <
complete: activitycallback
});
}
+
function activitycallback(transport) {
- setTimeout('getqueueactivity()', 5100);
+ setTimeout(getqueueactivity, 5100);
}
+
$(document).ready(function() {
- setTimeout('getqueueactivity()', 150);
+ setTimeout(getqueueactivity, 150);
});
+});
//]]>
</script>
<?php endif;
OpenPOWER on IntegriCloud