diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php new file mode 100755 index 0000000000..cbceb70f96 --- /dev/null +++ b/usr/local/www/status_queues.php @@ -0,0 +1,138 @@ +#!/usr/local/bin/php + + + +
+Status: Traffic shaper: Queues
+ + + + + + 1) { + mwexec("/usr/bin/killall -9 pfctl php"); + exit; + } + + $stat_line_split = split("\|", $stats_line); + $packet_sampled = intval($stat_line_split[2]); + $speed = $stat_line_split[1]; + $borrows = intval($stat_line_split[3]); + + echo "\n"; + $i++; + } + + /* + * prevent user from running out of ram. + * firefox and ie can be a bear on ram usage! + */ + $counter++; + if($counter > 40) { + echo "Redirecting to Queue Status."; + echo ""; + mwexec("/usr/bin/killall -9 pfctl"); + exit; + } +} + +mwexec("/usr/bin/killall -9 pfctl php"); + +?>