Add progress message for each optimization pass.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-09-28 12:20:35 -07:00
parent 6171d938f7
commit 8017f603a0

View File

@ -1780,6 +1780,8 @@ sub optimize_ruleset() {
$progress = 0; $progress = 0;
$passes++; $passes++;
progress_message "\n Table $table pass $passes, level 4a...";
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) { for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
# #
# If the chain isn't branched to, then delete it # If the chain isn't branched to, then delete it
@ -1873,6 +1875,8 @@ sub optimize_ruleset() {
$progress = 0; $progress = 0;
$passes++; $passes++;
progress_message "\n Table $table pass $passes, level 4b...";
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) { for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
my $lastrule = $chainref->{rules}[-1]; my $lastrule = $chainref->{rules}[-1];
@ -1896,6 +1900,8 @@ sub optimize_ruleset() {
# #
$passes++; $passes++;
progress_message "\n Table $table pass $passes, level 8...";
for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) { for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) {
my $rules = $chainref->{rules}; my $rules = $chainref->{rules};
next if not @$rules; next if not @$rules;