summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-06 02:28:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-06 02:28:28 +0000
commit7617733534e10ed610714121429371fed9a9cfb1 (patch)
treea535894ec6ca0b737368fbcddf4f352361f5f94a /etc
parent97f6d48fbe2c416ac2e652e836a34e93481ca550 (diff)
downloadpfsense-7617733534e10ed610714121429371fed9a9cfb1.zip
pfsense-7617733534e10ed610714121429371fed9a9cfb1.tar.gz
* Kill any occurance of pfctl before invoking pfctl
* Fix spelling mistake in comment
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 0a66d6e..d8cc4c5 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -555,11 +555,12 @@ function resync_all_package_configs_bootup($show_message) {
}
/*
- * gather_altq_queue_stats(): gater alq queue stats and return an array that
+ * gather_altq_queue_stats(): gather alq queue stats and return an array that
* is queuename|qlength|measured_packets
* NOTE: this commandt takes 5 seconds to run
*/
function gather_altq_queue_stats() {
+ mwexec("/usr/bin/killall pfctl");
$stats = `/sbin/pfctl -vvsq & sleep 5;killall pfctl 2>/dev/null`;
$stats_array = split("\n", $stats);
$queue_stats = array();
OpenPOWER on IntegriCloud